} else if (tag.equals("class")) { //tag class
String fullcn = node.getFirstChild().getNodeValue();
String pac = fullcn.substring(0, fullcn.lastIndexOf('.'));
String cn = fullcn.substring(fullcn.lastIndexOf('.') + 1,
fullcn.length());
SpeedoPackage sp = (SpeedoPackage) ((SpeedoXMLDescriptor) o).packages.get(pac);
if (sp == null) {
sp = new SpeedoPackage();
sp.name = pac;
sp.xmlDescriptor = (SpeedoXMLDescriptor) o;
((SpeedoXMLDescriptor) o).packages.put(pac, sp);
logger.log(BasicLevel.DEBUG, "New package: name= " + pac);
}