public ConnectBroker(Environment env) throws IOException, PackageException {
   this.env = env;
   service = new StandaloneUpdateService(env);
   service.initialize();
   cbHolder = new StandaloneCallbackHolder(env, service);
   NuxeoConnectClient.setCallBackHolder(cbHolder);
   targetPlatform =
       env.getProperty(Environment.DISTRIBUTION_NAME)
           + "-"
           + env.getProperty(Environment.DISTRIBUTION_VERSION);
   distributionMPDir = env.getProperty(PARAM_MP_DIR, DISTRIBUTION_MP_DIR_DEFAULT);
 }
 @Override
 public void activate(ComponentContext context) throws Exception {
   NuxeoConnectClient.setCallBackHolder(new NuxeoCallbackHolder());
 }