@Override
public MessageProducerResources doCreateProducerModel() throws Exception {
MessageProducerResources answer;
Connection conn = getConnectionResource().borrowConnection();
try {
TransactionCommitStrategy commitStrategy = null;
if (isEndpointTransacted()) {
commitStrategy = getCommitStrategy() == null ? new DefaultTransactionCommitStrategy() : getCommitStrategy();
}
Session session = conn.createSession(isEndpointTransacted(), getAcknowledgeMode());
Destination destination = getEndpoint().getDestinationCreationStrategy().createDestination(session, getDestinationName(), isTopic());