// Add map from messageListenerInterface to activationSpec class
Map<String, String> messageListenerToActivationSpecMap = new TreeMap<String, String>();
if (resourceAdapter.getInboundResourceAdapter() != null && resourceAdapter.getInboundResourceAdapter().getMessageAdapter() != null) {
for (MessageListener messageListener : resourceAdapter.getInboundResourceAdapter().getMessageAdapter().getMessageListener()) {
String messageListenerInterface = messageListener.getMessageListenerType();
ActivationSpec activationSpec = messageListener.getActivationSpec();
String activationSpecClassName = activationSpec.getActivationSpecClass();
messageListenerToActivationSpecMap.put(messageListenerInterface, activationSpecClassName);
}
resourceAdapterGBeanData.setAttribute("messageListenerToActivationSpecMap", messageListenerToActivationSpecMap);
resourceAdapterGBeanData.setReferencePattern("XATerminator", earContext.getTransactionManagerName());
resourceAdapterGBeanData.setReferencePattern("TransactionManager", earContext.getTransactionManagerName());