BatchJob implemented in JAVA