String protocol = key.substring(0, key.indexOf("."));
if(!protocols.contains(protocol)) {
protocols.add(protocol);
Map pp = new HashMap();
PropertiesUtils.getPropertiesWithPrefix(props, protocol, pp);
UMOConnector cnn = ConnectorFactory.getServiceDescriptor(protocol).createConnector(protocol);
cnn.setName(cnn.toString());
pp = PropertiesUtils.removeNamespaces(pp);
org.mule.util.BeanUtils.populateWithoutFail(cnn, pp, true);
MuleManager.getInstance().registerConnector(cnn);
}
}