for (SubResourceRecord subResourceRecord : record.getSubResourceRecords()) {
++counter;
try {
MethodMetadata method = subResourceRecord.getMetadata();
StringBuilder path = new StringBuilder(resourcePath);
if (!resourcePath.endsWith("/")) {
path.append("/");
}
path.append(method.getPath());
String httpMethod = method.getHttpMethod();
if (httpMethod == null) {
httpMethod = "(Sub-Locator)";
}
String consumes = constructMediaTypeString(method.getConsumes());
String produces = constructMediaTypeString(method.getProduces());
String methodName = constructMethodString(method.getReflectionMethod());
f.format("%n%1$-80s %2$-13s %3$-20s %4$-20s %5$s.%6$s",
path,
httpMethod,
consumes,