code: private Either<String, Either<JSONArray, JSONObject>> fireCommand(String endPoint, String optData, Map<String, String> reqHeaders) {
          CloseableHttpResponse resp = null;
          String respStr;
          String url = format(coordinatorUrl + endPoint, coordinatorHost, coordinatorPort);
          try {
              if (optData != null) {// POST
                  resp = postJson(url, optData, reqHeaders);
              } else {// GET
                  resp = get(url, reqHeaders);
              }
              respStr = IOUtils.toString(resp.getEntity().getContent());
          } catch (IOException ex) {
              return new Left<>(format("Http %s, faced exception %s\n", resp, ex));
          } finally {
              returnClient(resp);
          }
          try {
              return new Right<>(Util.asJsonType(respStr));
          } catch (JSONException je) {
              return new Left<>(format("Recieved data %s not in json format, faced exception %s\n", respStr, je));
          }
      }
docs: All commands. If data is null then GET else POST.
  
  @return