@Override
 public boolean hasChildren(final Object parent) {
   if (parent instanceof IParent) {
     final IParent p = (IParent) parent;
     return p.hasChildren();
   }
   return false;
 }
 @Override
 public Object[] getChildren(final Object parent) {
   if (parent instanceof IParent) {
     final IParent p = (IParent) parent;
     try {
       return p.getChildren().toArray();
     } catch (final ErlModelException x) {
       if (!x.isDoesNotExist()) {
         ErlLogger.debug("element missing: " + x.getMessage());
       }
     }
   }
   return NO_CHILDREN;
 }