public AbstractName getConnectorConfiguration(ConnectorType connectorType, List<ConnectorAttribute> connectorAttributes, WebContainer container, String uniqueName) {
GBeanInfo gbeanInfo = CONNECTOR_GBEAN_INFOS.get(connectorType);
AbstractName containerName = kernel.getAbstractNameFor(container);
AbstractName name = kernel.getNaming().createSiblingName(containerName, uniqueName, NameFactory.GERONIMO_SERVICE);
GBeanData gbeanData = new GBeanData(name, gbeanInfo);
gbeanData.setReferencePattern(JettyConnector.CONNECTOR_CONTAINER_REFERENCE, containerName);
for (ConnectorAttribute connectorAttribute : connectorAttributes) {
Object value = connectorAttribute.getValue();
if (value != null) {
gbeanData.setAttribute(connectorAttribute.getAttributeName(), connectorAttribute.getValue());
}
}
// provide a reference to KeystoreManager gbean for HTTPS connectors
if (connectorType.equals(HTTPS_NIO) || connectorType.equals(HTTPS_BIO)) {
AbstractNameQuery query = new AbstractNameQuery(KeystoreManager.class.getName());
gbeanData.setReferencePattern("KeystoreManager", query);
}
EditableConfigurationManager mgr = ConfigurationUtil.getEditableConfigurationManager(kernel);
if (mgr != null) {
try {