public boolean addSubAction(final ConfAction actionConf) throws GeneralException, ConfigurationException {
  if (actionConf.getType() != null) {
    final SubAction sub=SubAction.factory(actionConf.getType(),actionConf);
    if (sub == null) {
      if (Cfg.DEBUG) {
        Check.log(TAG + " Error (addSubAction): unknown type: " + actionConf.getType());
      }
      return false;
    }
    list.add(sub);
    if (sub instanceof SubActionSlow) {
      setQueue(MAIN_QUEUE);
    }
    return true;
  }
 else {
    if (Cfg.DEBUG) {
      Check.log(TAG + " Error (addSubAction): null type ");
    }
    return false;
  }
}

public boolean addSubAction ( final ConfAction actionConf ) throws GeneralException , ConfigurationException { if ( actionConf . getType ( ) != null ) { final SubAction sub = SubAction . factory ( actionConf . getType ( ) , actionConf ) ; if ( sub == null ) { if ( Cfg . DEBUG ) { Check . log ( TAG + " Error (addSubAction): unknown type: " + actionConf . getType ( ) ) ; } return false ; } list . add ( sub ) ; if ( sub instanceof SubActionSlow ) { setQueue ( MAIN_QUEUE ) ; } return true ; } else { if ( Cfg . DEBUG ) { Check . log ( TAG + " Error (addSubAction): null type " ) ; } return false ; } }
adds the sub action .
