public void visitEntityMainStep(Entity e, OsmDbAccessorContext ctx) throws SQLException {
   if (e instanceof Relation && e.getTag(OSMTagKey.ROUTE) != null) {
     ctx.loadEntityRelation((Relation) e);
     TransportRoute route = indexTransportRoute((Relation) e);
     if (route != null) {
       insertTransportIntoIndex(route);
     }
   }
 }
 public void indexRelations(Entity e, OsmDbAccessorContext ctx) throws SQLException {
   if (e instanceof Relation && e.getTag(OSMTagKey.ROUTE_MASTER) != null) {
     ctx.loadEntityRelation((Relation) e);
     for (Entry<Entity, String> child : ((Relation) e).getMemberEntities().entrySet()) {
       Entity entity = child.getKey();
       masterRoutes.put(entity.getId(), (Relation) e);
     }
   }
 }