capabilities.addAll(resource.getCapabilities(null));
computeOsgiServiceCapabilities(capabilities);
}
private void computeOsgiServiceCapabilities(List<Capability> capabilities) throws InvalidSyntaxException {
SubsystemExportServiceHeader header = getSubsystemManifest().getSubsystemExportServiceHeader();
if (header == null)
return;
for (Resource resource : getContentResources())
capabilities.addAll(header.toCapabilities(resource));
}