JCABindingModel jcaconfig = (JCABindingModel)config;
InboundConnectionModel inboundConnectionModel = jcaconfig.getInboundConnection();
if (inboundConnectionModel == null) {
throw JCAMessages.MESSAGES.noInboundConnectionConfigured();
}
ResourceAdapterModel resourceAdapterModel = inboundConnectionModel.getResourceAdapter();
if (resourceAdapterModel == null) {
throw JCAMessages.MESSAGES.noResourceAdapterConfigured();
}
String raName = resourceAdapterModel.getName();
if (raName == null) {
throw JCAMessages.MESSAGES.noResourceAdapterNameConfigured();
}
String raid = ConnectorServices.getRegisteredResourceAdapterIdentifier(raName);
if (raid == null && raName.endsWith(".rar")) {
// AS7 registers adapter's name with stripping .rar suffix unlike WildFly
raid = ConnectorServices.getRegisteredResourceAdapterIdentifier(stripDotRarSuffix(raName));
}
if (raid == null) {
throw JCAMessages.MESSAGES.uniqueKeyForResourceAdapter(raName);
}
Properties raProps = resourceAdapterModel.getProperties();
Properties activationProps = null;
ActivationSpecModel activationSpecModel = inboundConnectionModel.getActivationSpec();
if (activationSpecModel != null) {
activationProps = activationSpecModel.getProperties();
}