Object proxy = null;
String businessInterfaceType = unadvisedMethod.getReturnType().getName();
if (newStatefulInvocation.getId() != null)
proxy = factory.createProxyEjb21(newStatefulInvocation.getId(), businessInterfaceType);
else
proxy = factory.createProxyEjb21(businessInterfaceType);
InvocationResponse response = marshallResponse(statefulInvocation, proxy, newStatefulInvocation.getResponseContextInfo());
if (newStatefulInvocation.getId() != null)
response.addAttachment(StatefulConstants.NEW_ID,
newStatefulInvocation.getId());