Added samples for Java and Plain Text.