public void update() {
routesSRCPRoutesMap.clear();
SRCPRoutesRoutesMap.clear();
routeControl.removeRouteChangeListener(this);
SRCPTurnoutControlAdapter turnoutControl = SRCPTurnoutControlAdapter
.getInstance();
routeControl.setRoutingDelay(Preferences.getInstance().getIntValue(
PreferencesKeys.ROUTING_DELAY));
for (Route route : persistence.getAllRoutes()) {
SRCPRoute sRoute = new SRCPRoute();
for (RouteItem routeItem : route.getRouteItems()) {
SRCPRouteItem sRouteItem = new SRCPRouteItem();
SRCPTurnout sTurnout = turnoutControl.getSRCPTurnout(routeItem
.getTurnout());
sRouteItem.setTurnout(sTurnout);
if (routeItem.getRoutedState().toUpperCase().equals("LEFT")) {
sRouteItem.setRoutedState(SRCPTurnoutState.LEFT);
} else if (routeItem.getRoutedState().toUpperCase()