code: public <T> EntityResponse<T> put(Class<T> entityClass, String path, Object payload, Map<String, String> headers) throws IOException, RESTException {
          return postInternal(entityClass, payload, new HttpPut(baseUrl + path), headers);
      }
docs: Performs PUT request.
  
  @param entityClass Class, which contains expected response entity fields.
  @param path        Request path.
  @param payload     Entity, which will be used as request payload.
  @param headers     Map of HTTP request headers.
  @param <T>         Type of class, which contains expected response entity fields.
  @throws IOException   If error during HTTP connection or entity parsing occurs.
  @throws RESTException If HTTP response code is non OK.