}
Class<?> connectorInterface = service.getServiceClass();
if (wiringService.isConnectorCurrentlyPresent((Class<? extends Domain>) connectorInterface)) {
submitButton.setEnabled(true);
List<Method> result = Arrays.asList(connectorInterface.getMethods());
Collections.sort(result, new MethodComparator());
return result;
}
error("No service found for domain: " + connectorInterface.getName());
submitButton.setEnabled(false);
return new ArrayList<Method>();