code: @Override
      public MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, SecurityDocument.Parameters params) {
          Map<String, SecuritySchemeDefinition> definitions = params.securitySchemeDefinitions;
          if (MapUtils.isNotEmpty(definitions)) {
              applySecurityDocumentExtension(new Context(Position.DOCUMENT_BEFORE, markupDocBuilder));
              buildSecurityTitle(markupDocBuilder, labels.getLabel(SECURITY));
              applySecurityDocumentExtension(new Context(Position.DOCUMENT_BEGIN, markupDocBuilder));
              buildSecuritySchemeDefinitionsSection(markupDocBuilder, definitions);
              applySecurityDocumentExtension(new Context(Position.DOCUMENT_END, markupDocBuilder));
              applySecurityDocumentExtension(new Context(Position.DOCUMENT_AFTER, markupDocBuilder));
          }
          return markupDocBuilder;
      }
docs: Builds the security MarkupDocument.
  
  @return the security MarkupDocument