public boolean isInUse(){
  boolean result=false;
  TurnoutManager tm=InstanceManager.turnoutManagerInstance();
  List<String> turnouts=tm.getSystemNameList();
  Iterator<String> iter=turnouts.iterator();
  while (iter.hasNext()) {
    Turnout t=tm.getBySystemName(iter.next());
    if (t != null && t.getTurnoutOperation() == this) {
      result=true;
      break;
    }
  }
  return result;
}

public boolean isInUse ( ) { boolean result = false ; TurnoutManager tm = InstanceManager . turnoutManagerInstance ( ) ; List < String > turnouts = tm . getSystemNameList ( ) ; Iterator < String > iter = turnouts . iterator ( ) ; while ( iter . hasNext ( ) ) { Turnout t = tm . getBySystemName ( iter . next ( ) ) ; if ( t != null && t . getTurnoutOperation ( ) == this ) { result = true ; break ; } } return result ; }
see if operation is in use ( needed by the ui )
