};
if (checkRequestParameters(response, rules)) {
String resourceURL=getRequestHostnameAndContext(request)+request.getServletPath()+"/1/messaging/outbound/"+urlEncode(senderAddress)+"/requests/"+urlEncode(clientCorrelator);
ResourceReference resourceReference=new ResourceReference();
resourceReference.setResourceURL(resourceURL);
ObjectMapper mapper=new ObjectMapper();
String jsonResponse="{\"resourceReference\":"+mapper.writeValueAsString(resourceReference)+"}";