public void dumpLayers() {
		System.out.println("<layers>");
		for (Layer l : layers) {
			if (l instanceof CodeEntry) {
				System.out.println("CodeEntry: " + ((CodeEntry)l).clnm);
			} else if (l instanceof Code) {
				System.out.println("Code: " + ((Code)l).name);
				Field[] classfields = ((Code)l).getClass().getFields();
				for(Field f : classfields) {
					Class ftype = f.getType();
					System.out.println("Name: "+f.getName()+"; Type: "+ftype.getName());
				}
			} else {
				System.out.println(l);
			}
		}
		System.out.println("</layers>");
	}