code: private String getAttributeName(String fieldName) {
          String attributeName = fieldName;
          if (fieldName.indexOf(".") != -1) {
              attributeName = fieldName.substring(0, fieldName.indexOf("."));
          }
          return attributeName;
      }
docs: Gets the attribute name.
  
  @param fieldName
  the field name
  @return the attribute name