code: private void removeDeployment(final String deploymentID, Handler<AsyncResult<Void>> doneHandler) {
      context.execute(new Action<Void>() {
        @Override
        public Void perform() {
          Collection<String> nodeDeployments = deployments.get(node);
          if (nodeDeployments != null) {
            String deployment = null;
            for (String sdeployment : nodeDeployments) {
              JsonObject info = new JsonObject(sdeployment);
              if (info.getString("id").equals(deploymentID)) {
                deployment = sdeployment;
                break;
              }
            }
            if (deployment != null) {
              deployments.remove(node, deployment);
            }
          }
          return null;
        }
      }, doneHandler);
    }
docs: Removes a deployment from the deployments map.