code: @Override
      public JavaURLName parse(String nameString) throws NamingException {
          if (nameString == null || nameString.equals(""))
              throw new InvalidNameException();
  
          JavaURLName name;
          try {
              name = new JavaURLName(nameString);
          } catch (InvalidNameException ine) {
              // For parity with tWAS a composite name that is mis-constructed should throw a
              // NameNotFoundException rather than an InvalidNameException.
              // See test.jndi.url.context.servlet.JndiServlet.testInvalidName() for more details.
              NameNotFoundException nnfe = new NameNotFoundException(nameString);
              nnfe.initCause(ine);
              throw nnfe;
          }
  
          return name;
      }
docs: {@inheritDoc}