protected static boolean parseAvailableResult(List<String> ret,boolean checkForRoot){
  if (ret == null)   return false;
  boolean echo_seen=false;
  for (  String line : ret) {
    if (line.contains("uid=")) {
      return !checkForRoot || line.contains("uid=0");
    }
 else     if (line.contains("-BOC-")) {
      echo_seen=true;
    }
  }
  return echo_seen;
}

protected static boolean parseAvailableResult ( List < String > ret , boolean checkForRoot ) { if ( ret == null ) return false ; boolean echo_seen = false ; for ( String line : ret ) { if ( line . contains ( "uid=" ) ) { return ! checkForRoot || line . contains ( "uid=0" ) ; } else if ( line . contains ( "-BOC-" ) ) { echo_seen = true ; } } return echo_seen ; }
see if the shell is alive , and if so , check the uid
