// Add Query Parameters
QueryParameters qParams = resourcesObjectFactory.createQueryParameters();
buildQueryParams(subResourceLocator, qParams);
// Add Matrinx Parameters
MatrixParameters mParams = resourcesObjectFactory.createMatrixParameters();
buildMatrixParams(subResourceLocator, mParams);
httpMethod.setQueryParameters(qParams);
httpMethod.setProducedMediaTypes(producedMediaTypes);
httpMethod.setAcceptMediaTypes(acceptMediaTypes);