public static HashMap<String,List<String>> toElementParser(
			HashMap<String,List<String>> pDictionary, String elementType) {
		
		if (elementType.equals("pathway")) {ElementParser.parseMapInfo(pathway, pDictionary);} 
		else if (elementType.equals("datanode")) {ElementParser.parseDataNode(pathway, pDictionary);}
		else if (elementType.equals("label")) {ElementParser.parseLabel(pathway, pDictionary);} 
		else if (elementType.equals("line")) {ElementParser.parseLine(pathway, pDictionary);}
		else if (elementType.equals("biopax")) {ElementParser.parseBiopax(pathway, pDictionary);}
		else {
			System.out.println("element type unknown??");
			System.out.println(elementType);
			throw new EmptyStackException();
		}
		return pDictionary;
	}