code: private void addNewDeployment(final String deploymentID, final JsonObject deploymentInfo, Handler<AsyncResult<String>> doneHandler) {
      context.execute(new Action<String>() {
        @Override
        public String perform() {
          deployments.put(group, deploymentInfo.copy()
              .putString("id", deploymentID)
              .putString("realID", deploymentID)
              .putString("address", internal)
              .putString("node", listener.nodeId()).encode());
          return deploymentID;
        }
      }, doneHandler);
    }
docs: Adds a deployment to the cluster deployments map.