code: public String getOrderedObjectName(ObjectName pName) {
          // For patterns we always return the canonical name
          if (pName.isPattern()) {
              return pName.getCanonicalName();
          }
          if (getParameterAsBool(ConfigKey.CANONICAL_NAMING)) {
              return pName.getCanonicalName();
          } else {
              return pName.getDomain() + ":" + pName.getKeyPropertyListString();
          }
      }
docs: Name prepared according to requested formatting note. The key ordering can be influenced by the
  processing parameter {@link ConfigKey#CANONICAL_NAMING}. If not given or set to "true",
  then the canonical order is used, if set to "initial" the name is given to construction time
  is used.
  
  @param pName name to format
  @return formatted string