// If we found a resource class, then we can look further for a resource method
if ((res != null) && (tag.referencedMemberName() != null)) {
MemberDoc member = tag.referencedMember();
if (member == null) {
// No point looking if JavaDoc can't find the member
return invalidLink(tag, String.format("can't find resource method %s in %s", tag.referencedMemberName(), cDoc.qualifiedName()));
}
if (member instanceof MethodDoc) {
// Check for a resource method
res = application.findResourceForMethod(cDoc, (MethodDoc) member);