@SuppressWarnings("unchecked")
public void registerDomainTypeConfiguration(ConfigurationUnits... configurationUnits) {
GlobalAdministrationConfiguration administrationConfiguration = newGlobalAdministrationConfiguration(configurationUnits);
for (Class<?> managedType : administrationConfiguration.getManagedDomainTypes()) {
globalAdministrationConfiguration.registerDomainTypeConfiguration(administrationConfiguration.forManagedDomainType(managedType));
}
for (Class<?> nonManagedType : administrationConfiguration.getNonManagedDomainTypes()) {
globalAdministrationConfiguration.registerNonDomainTypeConfiguration(administrationConfiguration.forDomainType(nonManagedType));
}