code: public String getType() {
          String type =  getPropertyAsString(FIELD_TYPE);
          if (type == null){
              return getPropertyAsString(FIELD_ITEM_TYPE);
          }
          return type;
      }
docs: Gets the type of the entity.
  
  @return the entity type.