294295296297298299300301302303304305306307308
} } private void writeEx2(ModelOutput<Ex2> output, int... sids) throws IOException { try { Ex2 value = new Ex2(); for (int sid : sids) { value.setSid(sid); value.setValue(sid); value.setStringAsString(String.valueOf(sid)); output.write(value); } } finally { output.close(); }