}
public void remove(Handle arg0) throws RemoteException, RemoveException {
while(true) {
if (!Util.isLocal(this)) {
InputStream in = null;
try {
try {
OutputStream out = _request("remove__javax_ejb_Handle", true);
Util.writeAbstractObject(out,arg0);
_invoke(out);
return;
} catch (ApplicationException ex) {
in = (InputStream) ex.getInputStream();
String id = in.read_string();
if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) {
throw (RemoveException) in.read_value(RemoveException.class);
}
throw new UnexpectedException(id);
} catch (RemarshalException ex) {
continue;
}