code: public static Object resolveWrapperProxy(EJSLocalWrapperProxy proxy) {
          WrapperProxyState state = proxy.ivState;
  
          Object wrapper = state.ivWrapper;
          if (wrapper == null) {
              do {
                  state = state.reconnect();
                  wrapper = state.ivWrapper;
              } while (wrapper == null);
  
              proxy.ivState = state;
          } else {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "resolveWrapperProxy: " + state);
          }
  
          return wrapper;
      }
docs: Resolves the wrapper for a local object wrapper proxy.
  
  @param proxy the proxy state
  @return the wrapper
  @throws EJBException if the proxy cannot be reconnected