@Nullable
    public RouteItem getRouteItem() {
        return isRouteItem() ? (RouteItem) data : null;
    }
artificial superclass for RouteItem or Track objects
main/src/main/java/cgeo/geocaching/models/MapSelectableItem.java