connector.setAttribute("port", new Integer(port));
connector.setAttribute("maxThreads", new Integer(50));
connector.setAttribute("acceptQueueSize", new Integer(100));
connector.setReferencePattern(ConnectorGBean.CONNECTOR_CONTAINER_REFERENCE, container);
connector.setAttribute("name", uniqueName);
EditableConfigurationManager mgr = ConfigurationUtil.getEditableConfigurationManager(kernel);
if(mgr != null) {
try {
ObjectName config = Util.getConfiguration(kernel, container);
mgr.addGBeanToConfiguration(Configuration.getConfigurationID(config), connector, false);
return name.getCanonicalName();
} catch (InvalidConfigException e) {
log.error("Unable to add GBean", e);
return null;
} catch (URISyntaxException e) {