public ModelFieldType getEntityFieldType(ModelEntity entity, String type) throws GenericEntityException {
String helperName = getEntityHelperName(entity);
if (helperName == null || helperName.length() <= 0)
return null;
ModelFieldTypeReader modelFieldTypeReader = ModelFieldTypeReader.getModelFieldTypeReader(helperName);
if (modelFieldTypeReader == null) {
throw new GenericEntityException("ModelFieldTypeReader not found for entity " + entity.getEntityName() + " with helper name " + helperName);
}
return modelFieldTypeReader.getModelFieldType(type);
}