Attributes attribs = man.getMainAttributes();
String symbolicName = attribs.getValue(Constants.BUNDLE_SYMBOLICNAME);
Hashtable<Object, Object> attribMap = new Hashtable<Object, Object>();
for (Map.Entry<Object, Object> entry : attribs.entrySet()) {
Attributes.Name name = (Attributes.Name)entry.getKey();
attribMap.put(name.toString(), entry.getValue());
}
BundleMock mock = new BundleMock(symbolicName, attribMap, location);