}
@Override
public List<Capability> getCapabilities(String namespace) {
SubsystemManifest manifest = getSubsystemManifest();
List<Capability> result = manifest.toCapabilities(this);
if (namespace != null)
for (Iterator<Capability> i = result.iterator(); i.hasNext();)
if (!i.next().getNamespace().equals(namespace))
i.remove();
// TODO Somehow, exposing the capabilities of content resources of a