public Object populate(String entityName, Map<String, Object> params) {
Type type = Model.getType(entityName);
if (null == type) {
throw new RuntimeException(entityName + " was not configured!");
} else {
return populate(type.newInstance(), type.getName(), params);
}
}
public Object populate(Class<?> entityClass, Map<String, Object> params) {
EntityType entityType = Model.getEntityType(entityClass);