preparing for new Java sample