if ((retrieveFile() == null) && (getWriter() == null))
outW = new PrintWriter(System.out);
else
outW = new PrintWriter(getWriter());
JSONNode json = JSONInstances.toJSON(getInstances());
StringBuffer buffer = new StringBuffer();
json.toString(buffer);
outW.println(buffer.toString());
outW.flush();
if (getWriter() != null)
outW.close();