added JavaSample