code: protected boolean hasError(Component component) {
  
          if (component instanceof AbstractComponent) {
              if (((AbstractComponent)component).getComponentError() != null) {
                  return true;
              }
          }
          if (component instanceof I_HasError) {
              if (((I_HasError)component).hasEditableGroupError()) {
                  return true;
              }
  
          }
          return false;
      }
docs: Checks if the given group component has an error.<p>
  
  @param component the component to check
  @return true if the component has an error