private void removeEJBObject(Method callMethod, ThreadContext callContext) throws OpenEJBException {
CoreDeploymentInfo deploymentInfo = callContext.getDeploymentInfo();
TransactionContext txContext = new TransactionContext(callContext, transactionManager);
TransactionPolicy txPolicy = deploymentInfo.getTransactionPolicy(callMethod);
txPolicy.beforeInvoke(null, txContext);
try {
CmpEngine cmpEngine = getCmpEngine(deploymentInfo);
EntityBean entityBean = (EntityBean) cmpEngine.loadBean(callContext, callContext.getPrimaryKey());
if (entityBean == null) {
throw new NoSuchObjectException(callContext.getDeploymentInfo().getDeploymentID() + " " + callContext.getPrimaryKey());