public OMGraphicList createGraphics(OMGraphicList graphics, Map<String, List> routes, String selectedRoute) {

        graphics.clear();
        Stroke stroke = new BasicStroke(2);

        if(routes != null){
            Iterator iterator = routes.keySet().iterator();
            while(iterator.hasNext()){
                String routeName = (String)iterator.next();
                
                Iterator points = ((List)routes.get(routeName)).iterator();
                if(!points.hasNext())
                	return graphics;
                RoutePoint point1 = (RoutePoint)points.next();
//                OMPoint location = new OMPoint(point1.getLatitude(), point1.getLongitude(), 2);
//                graphics.addOMGraphic(location);
                Color trackColor = Color.BLUE;
                if(routeName.equals(selectedRoute))
                	trackColor = Color.RED;
                while(points.hasNext()){
                    RoutePoint point2 = (RoutePoint)points.next();
//                    location = new OMPoint(point2.getLatitude(), point2.getLongitude(), 2);
                    OMLine line =
                    	createLine(point1.getLatitude(), point1.getLongitude(),
                    			point2.getLatitude(), point2.getLongitude(), trackColor);
                    line.setStroke(stroke);
                    graphics.addOMGraphic(line);
//                    graphics.addOMGraphic(location);
                    		
                	point1 = point2;
                }
            }
        }
        
        return graphics;
    }