code: protected EntityType getEntityType(String attr) {
      String alias = Strings.substringBefore(attr, ".");
      EntityType entityType = (EntityType) entityTypes.get(alias);
      if (null == entityType) entityType = (EntityType) entityTypes.get(attr);
      return entityType;
    }
docs: <p>
  getEntityType.
  </p>
  
  @param attr a {@link java.lang.String} object.
  @return a {@link org.beangle.commons.entity.metadata.EntityType} object.