Method method = (Method) entry.getKey();
String operation = (String) entry.getValue();
if (!ejb.isBeanManagedTransaction()) {
TransactionType transactionType = ejb.getTransactionType(method, interfaceType);
OperationTxPolicy operationTxPolicy = NoDTxServerTransactionPolicies.getContainerTransactionPolicy(transactionType);
policies.put(operation, operationTxPolicy);
} else {
OperationTxPolicy operationTxPolicy = NoDTxServerTransactionPolicies.getBeanTransactionPolicy();
policies.put(operation, operationTxPolicy);
}
}
ServerTransactionPolicyConfig serverTransactionPolicyConfig = new MappedServerTransactionPolicyConfig(policies);