else
{
Object connectionResource = this.createOperationResource(endpoint);
if (currentTx.supports(this.getOperationResourceFactory(),connectionResource))
{
currentTx.bindResource(this.getOperationResourceFactory(), connectionResource);
}
else if (endpoint.getTransactionConfig().isTransacted())
{
throw new TransactionException(CoreMessages.createStaticMessage("Endpoint is transactional but transaction does not support it"));
}