code: public static String buildName(final QName pQName) {
          if (pQName == null) {
              throw new NullPointerException("mQName must not be null!");
          }
          String name;
          if (pQName.getPrefix().isEmpty()) {
              name = pQName.getLocalPart();
          } else {
              name = new StringBuilder(pQName.getPrefix()).append(":").append(pQName.getLocalPart()).toString();
          }
          return name;
      }
docs: Building name consisting out of prefix and name. NamespaceUri is not used
  over here.
  
  @param pQName
  the {@link QName} of an element
  @return a string with [prefix:]localname