code: private byte[] getBody(String method) {
          byte[] body = null;
      	String methodsWithInputEntity = HttpMethod.POST.name() + "|" + HttpMethod.PUT.name() + "|" + HttpMethod.DELETE.name();
      	if (method.matches(methodsWithInputEntity)) {
              if (isCompound()) {
                  body = Utils.toBytes(getQueryInputEntity());
              }
              else {
                  if (metadataJson.containsKey(INPUT_ENTITY)) {
                      JSONable data = (JSONable)commandParams.get(metadataJson.getString(INPUT_ENTITY));
                      if (data != null) {
                          body = Utils.toBytes(data.toJSON());
                      }
                  }
              }
          }
          return body;
      }
docs: Build the body for request
  @param method
  @return