buffer.append(getBasicMetadataHtml(owner, metadata, caldoc));
buffer.append(getFunctionalAgentMetadataHtml(owner, (FunctionalAgentMetadata) metadata, url, caldoc, isRequiredClassMethod));
buffer.append(getAdditionalMetadataHtml(owner, metadata, caldoc));
} else if (metadata instanceof ModuleMetadata) {
ModuleName moduleName = featureName.toModuleName();
ModuleTypeInfo moduleTypeInfoForFeature = owner.getPerspective().getMetaModule(moduleName).getTypeInfo();
CALDocComment caldoc = moduleTypeInfoForFeature.getCALDocComment();
buffer.append(getBasicMetadataHtml(owner, metadata, caldoc));
buffer.append(getModuleMetadataHtml(owner, (ModuleMetadata) metadata));