public void generateClassListJs(PackageElement p, PrintWriter w) throws IOException {
try {
w.printf("setClassList(\"%s\",",p.getQualifiedName());
JsonWriter jw = new JsonWriter(w);
jw.startArray();
for (TypeElement t : pss.getClassElements(p)) {
if(pss.getTrees().getTree(t)==null)
continue; // not a part of the compilation unit
jw.startObject();
jw.property("name",t.getSimpleName());