code: @Override
      public Object resolveObject(@Sensitive Object object) throws IOException {
          if (object instanceof JavaURLContextReplacement) {
              try {
                  JavaURLContextReplacement replacement = (JavaURLContextReplacement) object;
                  JavaURLContext ctx = factory.createJavaURLContext(replacement.getEnv(), new JavaURLName(replacement.getBase()));
                  return ctx;
              } catch (NamingException ex) {
                  throw new IOException(ex.getMessage(), ex);
              }
  
          }
          return null;
      }
docs: /*
  (non-Javadoc)
  
  @see com.ibm.ws.serialization.DeserializationObjectResolver#resolveObject(java.lang.Object)