request.setEndpoint(httpRequest.getEndpoint());
request.setHttpMethod(httpRequest.getMethodName());
request.setResourcePath(httpRequest.getResourcePath());
for (Entry<String, String> parameter : httpRequest.getParameters().entrySet()) {
request.addParameter(parameter.getKey(), parameter.getValue());
}
for (Entry<String, String> parameter : httpRequest.getHeaders().entrySet()) {
request.addHeader(parameter.getKey(), parameter.getValue());
}