* @throws SecurityException if the connection could not be made for security reasons.
*/
public void connect(Map env) throws IOException {
if (!connected) {
try {
proxy = new CamelProxyFactoryBean();
proxy.setCamelContext(getCamelContext());
proxy.setServiceInterface(javax.management.MBeanServerConnection.class);
proxy.setServiceInterface(MBeanCamelServerConnection.class);
proxy.setServiceUrl(endpointUri);
proxy.afterPropertiesSet();