static ThemeSettings getThemeSettings( BootstrapHandler.BootstrapContext context) { Optional<ThemeDefinition> themeDefinition = context.getTheme(); if (themeDefinition.isPresent()) { return getThemeSettings(context, themeDefinition.get()); } return null; }