code: public static String wellFormedToCpeUri(Part value) {
          if (value == null) {
              return Part.ANY.getAbbreviation();
          }
          return value.getAbbreviation();
      }
docs: URL encodes the value for CPE 2.2. If the value is NULL or ANY ('*') then
  an empty string is returned. If the value is a hyphen ('-') the hyphen is
  returned un-encoded; otherwise URL encoding is applied.
  
  @param value the value to encode
  @return the encoded value