List<SubResource> subResources = new ArrayList<SubResource>();
for (Method method : methods) {
if (ResourceMetaDataScanner.isSubResource(method)) {
MethodMetaData methodMetaData = resourceMetaDataScanner.scanMethods(clazz, method);
if (methodMetaData != null) {
populateRootLevelValues(classMetaData, methodMetaData);
methodMetaData.setReturnType(method.getReturnType());
SubResource subResource = new SubResource();
subResource.setMethodMetaData(methodMetaData);
UriTemplateProcessor templateProcessor = new JaxRsUriTemplateProcessor();