// Add map from messageListenerInterface to activationSpec class
Map<String, String> messageListenerToActivationSpecMap = new TreeMap<String, String>();
if (resourceadapter.isSetInboundResourceadapter() && resourceadapter.getInboundResourceadapter().isSetMessageadapter()) {
for (MessagelistenerType messagelistenerType : resourceadapter.getInboundResourceadapter().getMessageadapter().getMessagelistenerArray()) {
String messageListenerInterface = messagelistenerType.getMessagelistenerType().getStringValue().trim();
ActivationspecType activationspec = messagelistenerType.getActivationspec();
String activationSpecClassName = activationspec.getActivationspecClass().getStringValue().trim();
messageListenerToActivationSpecMap.put(messageListenerInterface, activationSpecClassName);
resourceAdapterGBeanData.setAttribute("messageListenerToActivationSpecMap", messageListenerToActivationSpecMap);
resourceAdapterGBeanData.setReferencePattern("TransactionManager", earContext.getTransactionManagerName());
}
}