return models;
}
private void writeModels(OutputStream stream, List<Object> models) {
BufferedWriter streamWriter = IOHelper.buffered(new OutputStreamWriter(stream, encoding));
BeanWriter out = factory.createWriter(streamName, streamWriter);
for (Object obj : models) {
out.write(obj);
}
out.flush();
out.close();
}