Source:
<code>public void verify() throws Exception { verifyHeaders(); verifyDirectives(Constants.EXPORT_PACKAGE, "uses:|mandatory:|include:|exclude:|" + IMPORT_DIRECTIVE, PACKAGEPATTERN, "package"); verifyDirectives(Constants.IMPORT_PACKAGE, "resolution:", PACKAGEPATTERN, "package"); verifyDirectives(Constants.REQUIRE_BUNDLE, "visibility:|resolution:", SYMBOLICNAME, "bsn"); verifyDirectives(Constants.FRAGMENT_HOST, "extension:", SYMBOLICNAME, "bsn"); <START> verifyDirectives(Constants.PROVIDE_CAPABILITY, "effective:|register:|uses:", null, null); <END> verifyDirectives(Constants.REQUIRE_CAPABILITY, "effective:|resolution:|filter:|cardinality:", null, null); verifyDirectives(Constants.BUNDLE_SYMBOLICNAME, "singleton:|fragment-attachment:|mandatory:", SYMBOLICNAME, "bsn"); verifyManifestFirst(); verifyActivator(); verifyActivationPolicy(); verifyComponent(); verifyNative(); verifyImports(); verifyExports(); verifyUnresolvedReferences(); verifySymbolicName(); verifyListHeader(Constants.BUNDLE_REQUIREDEXECUTIONENVIRONMENT, EENAME, false); verifyHeader(Constants.BUNDLE_MANIFESTVERSION, BUNDLEMANIFESTVERSION, false); verifyHeader(Constants.BUNDLE_VERSION, VERSION, true); verifyListHeader(Constants.BUNDLE_CLASSPATH, FILE, false); verifyDynamicImportPackage(); verifyBundleClasspath(); verifyUses(); if (usesRequire) { if (!getErrors().isEmpty()) { getWarnings().add(0, "Bundle uses Require Bundle, this can generate false errors because then not enough information is available without the required bundles"); } } verifyRequirements(); verifyCapabilities(); verifyMetaPersistence(); verifyPathNames(); doVerifierPlugins(); }</code><technical_language>is capability namespace register directive. a large problem space</technical_language>

Target:
public void verify() throws Exception { verifyHeaders(); verifyDirectives(Constants.EXPORT_PACKAGE, "uses:|mandatory:|include:|exclude:|" + IMPORT_DIRECTIVE, PACKAGEPATTERN, "package"); verifyDirectives(Constants.IMPORT_PACKAGE, "resolution:", PACKAGEPATTERN, "package"); verifyDirectives(Constants.REQUIRE_BUNDLE, "visibility:|resolution:", SYMBOLICNAME, "bsn"); verifyDirectives(Constants.FRAGMENT_HOST, "extension:", SYMBOLICNAME, "bsn"); verifyDirectives(Constants.PROVIDE_CAPABILITY, namespace -> "osgi.serviceloader".equals(namespace) ? "effective:|uses:|register:" : "effective:|uses:", null, null); verifyDirectives(Constants.REQUIRE_CAPABILITY, "effective:|resolution:|filter:|cardinality:", null, null); verifyDirectives(Constants.BUNDLE_SYMBOLICNAME, "singleton:|fragment-attachment:|mandatory:", SYMBOLICNAME, "bsn"); verifyManifestFirst(); verifyActivator(); verifyActivationPolicy(); verifyComponent(); verifyNative(); verifyImports(); verifyExports(); verifyUnresolvedReferences(); verifySymbolicName(); verifyListHeader(Constants.BUNDLE_REQUIREDEXECUTIONENVIRONMENT, EENAME, false); verifyHeader(Constants.BUNDLE_MANIFESTVERSION, BUNDLEMANIFESTVERSION, false); verifyHeader(Constants.BUNDLE_VERSION, VERSION, true); verifyListHeader(Constants.BUNDLE_CLASSPATH, FILE, false); verifyDynamicImportPackage(); verifyBundleClasspath(); verifyUses(); if (usesRequire) { if (!getErrors().isEmpty()) { getWarnings().add(0, "Bundle uses Require Bundle, this can generate false errors because then not enough information is available without the required bundles"); } } verifyRequirements(); verifyCapabilities(); verifyMetaPersistence(); verifyPathNames(); doVerifierPlugins(); }