*/
private void remove(Object target) throws RemoveException
{
// EJBTHREE-1217: EJBHome.remove(Object primaryKey) must throw RemoveException
if(!(target instanceof Handle))
throw new RemoveException("EJB 3 3.6.2.2: Session beans do not have a primary key");
StatefulHandleRemoteImpl handle = (StatefulHandleRemoteImpl) target;
try
{
handle.getEJBObject().remove();
}
catch(RemoteException re)
{
throw new RemoveException(re.getMessage());
}
}