code: public Name getRemainingName() {
          if (getCause() instanceof javax.naming.NamingException) {
              return ((javax.naming.NamingException) getCause())
                      .getRemainingName();
          }
          return null;
      }
docs: Convenience method to get the unresolved part of the name associated with
  this exception, if the root cause was an instance of
  {@link javax.naming.NamingException}.
  
  @return a composite name describing the part of the name that has not
  been resolved if the root cause is an instance of
  javax.naming.NamingException, or <code>null</code> if the
  remaining name field has not been set