// Check annotations
if (pathList.isEmpty() && blueprintHeaderAnnotation != null && blueprintHeaderAnnotation.trim().equalsIgnoreCase("true")) {
LOGGER.debug("Scanning bundle {} for blueprint annotations", bundle.getSymbolicName());
ServiceReference sr = this.context.getServiceReference(BlueprintAnnotationScanner.class.getName());
if (sr != null) {
BlueprintAnnotationScanner bas = (BlueprintAnnotationScanner) this.context.getService(sr);
try {
// try to generate the blueprint definition XML
URL url = bas.createBlueprintModel(bundle);
if (url != null) {
pathList.add(url);
}
} finally {
this.context.ungetService(sr);