Just check below thread. Though you need to change it to service which you can invoke from Sling Model and return from one of the getter. And, may be try using Sling APIs instead.
Just check below thread. Though you need to change it to service which you can invoke from Sling Model and return from one of the getter. And, may be try using Sling APIs instead.