// generate the request part
Request wadlRequest = generateRequest(r, m, wadlResourceParams);
if (wadlRequest != null)
wadlMethod.setRequest(wadlRequest);
// generate the response part
Response wadlResponse = generateResponse(r, m);
if (wadlResponse != null)
wadlMethod.setResponse(wadlResponse);
return wadlMethod;
}