throw new RemoteException("Handler is null");
}
final Handle handle = (Handle) args[0];
final EJBObject ejbObject = handle.getEJBObject();
if (ejbObject == null) {
throw new NullPointerException("The handle.getEJBObject() is null.");
}
final Object primKey = ejbObject.getPrimaryKey();
if (primKey == null) {
throw new NullPointerException("The handle.getEJBObject().getPrimaryKey() is null.");
}
final EJBRequest req = new EJBRequest(RequestMethodCode.EJB_HOME_REMOVE_BY_HANDLE, ejb, method, args, primKey, client.getSerializer());