GBeanData connector;
if(protocol.equals(PROTOCOL_HTTP)) {
connector = new GBeanData(name, ConnectorGBean.GBEAN_INFO);
} else if(protocol.equals(PROTOCOL_HTTPS)) {
connector = new GBeanData(name, HttpsConnectorGBean.GBEAN_INFO);
GBeanQuery query = new GBeanQuery(null, ServerInfo.class.getName());
Set set = kernel.listGBeans(query);
connector.setReferencePattern("ServerInfo", (ObjectName)set.iterator().next());
//todo: default HTTPS settings
} else if(protocol.equals(PROTOCOL_AJP)) {
connector = new GBeanData(name, ConnectorGBean.GBEAN_INFO);