code: public static String getLocalName(final String uri, final String prefix) {
          String ns = getNSFromPrefix(prefix);
          if (ns != null) {
              return uri.replace(ns, "");
          }
          throw new IllegalArgumentException("Undefined prefix (" + prefix + ") in URI: " + uri);
      }
docs: Returns the local name of a URI by removing the prefix namespace
  
  @param uri    the uri
  @param prefix the prefix we want to remove
  @return the local name (uri without prefix namespace)