private List<AbstractDomain> findRecursivelyDomains(AbstractDomain root) {
   List<AbstractDomain> list = Lists.newArrayList();
   list.add(root);
   for (AbstractDomain sub : root.getSubdomain()) {
     list.addAll(findRecursivelyDomains(sub));
   }
   return list;
 }
  @Override
  public boolean isAdminforThisDomain(Account actor, AbstractDomain domain) {

    if (!(actor.hasSuperAdminRole() || actor.hasSystemAccountRole())) {
      if (!domain.isManagedBy(actor)) {
        return false;
      }
    }
    return true;
  }