final ConfigurableFactory factory = ConfigurableFactoryHelper.getFactory(className);
if (factory == null) {
return null;
}
final Object obj = factory.create(new ConfigurableFactoryContext(parameters));
if (!(obj instanceof Entity)) {
throw new IllegalArgumentException(obj.getClass().getName()
+ " is not an instance of Entity");
}