code: public static InternalQName encode(InternalQName name)
     {
        String encoded = encode(name.getName());
        if (encoded.equals(name.getName()))
        {
           return name;
        }
        else
        {
           return new InternalQName(name.getNamespace(), encoded);
        }
     }
docs: Encodes the local part of <code>name</code> as specified in ISO 9075.
  
  @param name
  the <code>QName</code> to encode.
  @return the encoded <code>QName</code> or <code>name</code> if it does not need encoding.