@Command(scope = "openengsb", name = "domains", description = "Prints out the available OpenEngSB domains.")
public class DomainInfoCommand extends OsgiCommandSupport {
@Override
protected Object doExecute() throws Exception {
OsgiUtilsService service = new DefaultOsgiUtilsService(getBundleContext());
List<DomainProvider> serviceList = service.listServices(DomainProvider.class);
Collections.sort(serviceList, Comparators.forDomainProvider());
System.out.println("Services");
for (DomainProvider dp : serviceList) {
OutputStreamFormater.printValue(dp.getName().getString(Locale.getDefault()),
dp.getDescription().getString(Locale.getDefault()));