List<ClassResourceInfo> resources = ((JAXRSServiceImpl)sf.getService()).getClassResourceInfos();
String contentTypes = "*/*";
String acceptContentTypes = "application/xml;q=0.5,application/json";
MetadataMap<String, String> values = new MetadataMap<String, String>();
ClassResourceInfo resource = JAXRSUtils.selectResourceClass(resources, "/1/2/3/d/resource1", values,
new MessageImpl());
OperationResourceInfo ori = JAXRSUtils.findTargetMethod(resource,
createMessage(),
"GET", values, contentTypes,
JAXRSUtils.sortMediaTypes(acceptContentTypes, "q"),