private BundleContext bundleContext;
public Map getServiceProperties(String beanName) {
Map p = new MapBasedDictionary();
p.put(BEAN_NAME_PROPERTY_KEY, beanName);
String name = getSymbolicName();
if (StringUtils.hasLength(name)) {
p.put(Constants.BUNDLE_SYMBOLICNAME, name);
}
String version = getBundleVersion();
if (StringUtils.hasLength(version)) {
p.put(Constants.BUNDLE_VERSION, version);
}
return p;
}