// Lookup the Proxy Factory in the Object Store
StatefulSessionProxyFactory proxyFactory = Ejb3RegistrarLocator.locateRegistrar().lookup(proxyFactoryKey,
StatefulSessionProxyFactory.class);
// Create a new EJB2.x Proxy
Object proxy = proxyFactory.createProxyEjb2x(sessionId);
InvocationResponse response = marshallResponse(statefulInvocation, proxy, invocation.getResponseContextInfo());
response.addAttachment(StatefulConstants.NEW_ID, sessionId);
return response;
}