* get rid of XStream dependency and package org.apache.bval.xml in core
* this would also require a split in MetaBeanManager and MetaBeanBuilder, because parts of the code deal with classes in this package
*/
if (Boolean.parseBoolean(factory.getProperties().get(
ApacheValidatorConfiguration.Properties.ENABLE_METABEANS_XML))) {
builders.add(new XMLMetaBeanFactory());
}
return new MetaBeanManager(
new MetaBeanBuilder(builders.toArray(new MetaBeanFactory[builders.size()])));
}