if (TypeHelper.class.equals(type)) {
factory = new TypeHelperObjectFactory(resolver);
} else if (DataFactory.class.equals(type)) {
factory = new DataFactoryObjectFactory(resolver);
} else if (XSDHelper.class.equals(type)) {
factory = new XSDHelperObjectFactory(resolver);
} else if (XMLHelper.class.equals(type)) {
factory = new XMLHelperObjectFactory(resolver);
} else {
ObjectCreationException e = new ObjectCreationException("Unknown type");
e.setIdentifier(type.getName());