I am currently working on a similar problem. I need to get all service names, which is easy using this:
reg = RegistryFactory.getRegistry();
List<String> services = reg.findAllServices();
but I am unable to get their categories... which is frustrating since alsmost all methods that takes service as an argument need to have specified both tha name and the category. It would be really helpful if someone figures out how to do this...