jsonWriter.addField("isDir", listFiles[j].isDirectory());
jsonWriter.addField("isNew", listFiles[j].isNew());
jsonWriter.addField("readOnly", listFiles[j].readOnly());
jsonWriter.addField("isDirty", listFiles[j].isDirty());
if (listFiles[j] instanceof VLibraryResource) {
VLibraryResource r = (VLibraryResource) listFiles[j];
jsonWriter.addField("libraryId", r.getLibraryId());
jsonWriter.addField("libVersion", r.getLibraryVersion());
}
jsonWriter.endObject();
}
return jsonWriter.getJSON();