problemReporter.error(new DomainConfigurationProblem(configurationUnits, format("Type %s must have default constructor.", domainType.getSimpleName())));
}
}
void validateSidebars(ConfigurationUnits configurationUnits, ProblemReporter problemReporter) {
final SidebarsConfigurationUnit sidebarsConfigurationUnit = configurationUnits.getSidebars();
final List<SidebarMetadata> sidebars = sidebarsConfigurationUnit.getSidebars();
for (SidebarMetadata sidebar : sidebars) {
final String jspFilePath = sidebar.getJspFilePath();
if (!resourceLoader.getResource(jspFilePath).exists()) {
problemReporter.error(new DomainConfigurationProblem(configurationUnits, SIDEBARS, "Wrong jsp file path defined for sidebar " + jspFilePath));