// dont process a subresource outside the context of its parent method
if (isSubResourceClass && this.parentMethod == null) {
// skip
} else {
for (MethodDoc method : currentClassDoc.methods()) {
ApiMethodParser methodParser = this.parentMethod == null ? new ApiMethodParser(this.options, this.rootPath, method, this.classes,
defaultErrorTypeClass) : new ApiMethodParser(this.options, this.parentMethod, method, this.classes, defaultErrorTypeClass);
Method parsedMethod = methodParser.parse();
if (parsedMethod == null) {