public static void makeRemotable(InstanceAdvised proxy, InvokerLocator locator,
Object objectId, List<Interceptor> interceptors, String subsystem)
{
InstanceAdvisor advisor = proxy._getInstanceAdvisor();
for(Interceptor i : interceptors)
advisor.insertInterceptor(i);
advisor.getMetaData().addMetaData(InvokeRemoteInterceptor.REMOTING,
InvokeRemoteInterceptor.INVOKER_LOCATOR,
locator,
PayloadKey.AS_IS);
advisor.getMetaData().addMetaData(InvokeRemoteInterceptor.REMOTING,