Properties props = context.getChildrenAsProperties();
// Check that all settings are known to the configuration class
for (Map.Entry entry : props.entrySet()) {
MetaClass metaConfig = MetaClass.forClass(Configuration.class);
if (!metaConfig.hasSetter((String) entry.getKey())) {
throw new BuilderException("The setting " + entry.getKey() + " is not known. Make sure you spelled it correctly (case sensitive).");
}
}
configuration.setAutoMappingBehavior(AutoMappingBehavior.valueOf(stringValueOf(props.getProperty("autoMappingBehavior"), "PARTIAL")));
configuration.setCacheEnabled(booleanValueOf(props.getProperty("cacheEnabled"), true));
configuration.setLazyLoadingEnabled(booleanValueOf(props.getProperty("lazyLoadingEnabled"), safeCglibCheck()));