StatefulSessionContainerMethodInvocation newStatefulInvocation = buildNewInvocation(
info, statefulInvocation, initParameterTypes,
initParameterValues);
StatefulRemoteProxyFactory factory = new StatefulRemoteProxyFactory(this, binding);
factory.init();
Object proxy = null;
String businessInterfaceType = unadvisedMethod.getReturnType().getName();
if (newStatefulInvocation.getSessionId() != null)
proxy = factory.createProxyEjb21(newStatefulInvocation.getSessionId(), businessInterfaceType);
else
proxy = factory.createProxyEjb21(businessInterfaceType);
InvocationResponse response = marshallResponse(statefulInvocation, proxy, newStatefulInvocation.getResponseContextInfo());
if (newStatefulInvocation.getSessionId() != null)
response.addAttachment(StatefulConstants.NEW_ID,
newStatefulInvocation.getSessionId());