Coding the application

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