Coding the application

About this task
To code service sample, SampleService.java is needed. It has the following contains: