code: public boolean needsGui() {
          BeanContextChild bcc = getPeer();
          if (bcc != this && bcc instanceof Visibility) {
              return ((Visibility) bcc).needsGui();
          }
  
          // check children
          for (Object o : _children.keySet()) {
              if (o instanceof Visibility) {
                  if (((Visibility) o).needsGui()) {
                      return true;
                  }
              }
          }
          return false;
      }
docs: Determines whether this bean needs a GUI.
  
  @return True if the bean absolutely needs a GUI available in
  order to get its work done.