private static boolean hasChild(ServiceViewItem item, Object service) {
    for (ServiceViewItem child : item.getChildren()) {
      if (child.getValue().equals(service)) {
        return true;
      }
    }
    return false;
  }
private static boolean hasChild(ServiceViewItem item, Object service)