Added MessageWriter.java