code: public static Attribute createAttribute(String name, String friendlyName, String nameFormat) {
      Attribute attribute = attributeBuilder.buildObject();
      attribute.setName(name);
      attribute.setFriendlyName(friendlyName);
      attribute.setNameFormat(nameFormat);
      return attribute;
    }
docs: Utility method that creates an {@code Attribute} given its name, friendly name and name format.
  
  @param name
  the attribute name
  @param friendlyName
  the attribute friendly name (may be {@code null})
  @param nameFormat
  the name format
  @return an {@code Attribute} object