}
} else {
try {
Object handleKey = handle.getPrimaryKey();
RpcContainer container = (RpcContainer) ejbDeployment.getContainer();
result = container.invoke(ejbDeployment.getDeploymentId(), interfaceType, method.getDeclaringClass(), method, arguments, handleKey);
} catch (OpenEJBException e) {
Throwable cause = e.getCause();
if (cause instanceof Exception) {
Exception exception = (Exception) cause;
return Util.writeUserException(method, reply, exception);