in taverna-osgi-launcher/src/main/java/org/apache/taverna/osgilauncher/OsgiLauncher.java [396:410]
private boolean hasSpringContext(Bundle bundle) {
String springFilesLocation = "META-INF/spring";
// check for custom spring files location
@SuppressWarnings("rawtypes")
Dictionary headers = bundle.getHeaders();
if (headers != null) {
Object header = headers.get("Spring-Context");
if (header != null) {
springFilesLocation = header.toString().trim();
}
}
@SuppressWarnings("rawtypes")
Enumeration springFiles = bundle.findEntries(springFilesLocation, "*.xml", false);
return springFiles != null && springFiles.hasMoreElements();
}