Added more generic java application examples