Map<String, Object> otherAttribs = new HashMap<String, Object>();
Map<String, Object> bundleAttribs = new HashMap<String, Object>();
Map<String, Object> serviceAttribs = new HashMap<String, Object>();
Map<String, Object> packagesAttribs = new HashMap<String, Object>();
Dictionary dict = bundle.getHeaders();
Enumeration keys = dict.keys();
// do an initial loop and separate the attributes in different groups
while (keys.hasMoreElements()) {
String k = (String) keys.nextElement();
Object v = dict.get(k);