addressed the formatting.
I renamed the method to something more appropriate. However I don't think making the method return a sorted set is very good idea - too tight a coupling. it should really just return a collection of service names and let the called decide if it needs it sorted. I did use a treemap though on the caller side ( good idea, cleaned it up a bit).