code: private MethodRefActive createMethodRefActive(ServiceRefAmp serviceRef)
    {
      MethodRefAmp methodRef;
      
      if (_type != null) {
        methodRef = serviceRef.methodByName(_name, _type);
      }
      else {
        methodRef = serviceRef.methodByName(_name);
      }
      
      MethodShim methodShim;
      
      ClassLoader methodLoader = methodRef.serviceRef().classLoader();
      
      //System.out.println("SR: " + serviceRef + " " + serviceRef.getActor());
      
      if (methodLoader == _sourceLoader
          || serviceRef.stub() instanceof StubLink) {
        //methodShim = new MethodShimIdentity(methodRef.getMethod());
        methodShim = new MethodShimIdentity(methodRef, 
                                            isLocalService(serviceRef));
      }
      else {
        PodImport importContext; 
        
        importContext = PodImportContext.create(_sourceLoader).getPodImport(methodLoader);
        //importContext = ImportContext.create(methodLoader).getModuleImport(_sourceLoader);
  
        //methodShim = new MethodShimImport(methodRef.getMethod(), importContext);
        methodShim = new MethodShimImport(methodRef, importContext, 
                                          isLocalService(serviceRef));
      }
      
    
      return new MethodRefActive(serviceRef, 
                                 methodRef,
                                 methodShim);
    }
docs: Create an MethodRefActive for the given serviceRef.
  
  The MethodRefActive contains the methodRef and the cross-pod
  marshal/serialization shim.