Added two exemplary Java service tasks and some util methods to print instance state