private Object findEJBObject(Method callMethod, Object[] args, ThreadContext callContext) throws OpenEJBException {
CoreDeploymentInfo deploymentInfo = callContext.getDeploymentInfo();
// Get the transaction policy assigned to this method
TransactionPolicy txPolicy = deploymentInfo.getTransactionPolicy(callMethod);
TransactionContext txContext = new TransactionContext(callContext, transactionManager);
txPolicy.beforeInvoke(null, txContext);
try {
CmpEngine cmpEngine = getCmpEngine(deploymentInfo);
List<Object> results = cmpEngine.queryBeans(callContext, callMethod, args);