code: @Override
      public Object replaceObject(@Sensitive Object object) {
          if (object instanceof JavaURLContext) {
              JavaURLContext ctx = (JavaURLContext) object;
              JavaURLContextReplacement replacement = new JavaURLContextReplacement();
              replacement.setBase(ctx.getBase().toString());
              try {
                  replacement.setEnv(ctx.getEnvironment());
              } catch (NamingException ex) {
                  //should never occur, but will log ffdc if it does - and just user a blank hashtable to avoid NPEs
                  replacement.setEnv(new Hashtable<Object, Object>());
              }
              return replacement;
          }
          return null;
      }
docs: /*
  (non-Javadoc)
  
  @see com.ibm.ws.serialization.SerializationObjectReplacer#replaceObject(java.lang.Object)