@Override
 protected boolean parentHasChild(Group parent, Group child) {
   final GroupSearchBean searchBean = new GroupSearchBean();
   searchBean.addChildId(child.getId());
   final List<Group> parents =
       groupServiceClient.findBeansLocalize(searchBean, null, 0, 100, getDefaultLanguage());
   return (CollectionUtils.isNotEmpty(parents)) ? parents.contains(parent) : false;
 }
 @Override
 protected boolean isChildInParent(Group parent, Group child) {
   final GroupSearchBean searchBean = new GroupSearchBean();
   searchBean.addParentId(parent.getId());
   final List<Group> children =
       groupServiceClient.findBeansLocalize(searchBean, null, 0, 100, getDefaultLanguage());
   return (CollectionUtils.isNotEmpty(children)) ? children.contains(child) : false;
 }