code: private static HashMap<String, Object> fillHashAnnotations(
              HashMap<String, Object> hashAnnotation,
              HttpMethod method,
              String path,
              PayloadType payloadType,
              int retries,
              int connectionTimeout,
              int socketTimeout)
              throws MPException {
          if (hashAnnotation.containsKey("method")) {
              throw new MPException("Multiple rest methods found");
          }
          hashAnnotation.put("method", method);
          hashAnnotation.put("path", path);
          hashAnnotation.put("payloadType", payloadType);
          hashAnnotation.put("retries", retries);
          hashAnnotation.put("connectionTimeout", connectionTimeout);
          hashAnnotation.put("socketTimeout", socketTimeout);
          return hashAnnotation;
      }
docs: Fills a hashmap with the rest method and the path to call the api. It validates that no other method/path is filled in the hash
  
  @param hashAnnotation        a HashMap object that will contain the method and path
  @param method                a String with the method
  @param path                  a String with the path
  @param payloadType           a PayloadType enum
  @param retries               int with the retries for the api request
  @param connectionTimeout     int with the connection timeout for the api request expressed in milliseconds
  @param socketTimeout         int with the socket timeout for the api request expressed in milliseconds
  @return                      the HashMap object that is received by param
  @throws MPException