// Retrieve
String containerName = config.getInitParameter(CONTAINER_PROPERTY);
if (containerName == null) {
containerName = CONTAINER_DEFAULT;
}
JBIContainer container = (JBIContainer) applicationContext.getBean(containerName);
if (container == null) {
throw new IllegalStateException("Unable to find jbi container " + containerName);
}
String componentName = config.getInitParameter(COMPONENT_PROPERTY);
if (componentName == null) {
componentName = COMPONENT_DEFAULT;
}
ComponentMBeanImpl componentMBean = container.getComponent(componentName);
if (componentMBean == null) {
throw new IllegalStateException("Unable to find component " + componentName);
}
HttpComponent component = (HttpComponent) componentMBean.getComponent();
String mapping = config.getInitParameter(MAPPING_PROPERTY);