code: private void applySecurityDocumentExtension(Context context) {
          extensionRegistry.getSecurityDocumentExtensions().forEach(extension -> extension.apply(context));
      }
docs: Apply extension context to all SecurityContentExtension
  
  @param context context