public static boolean canHaveStar(final Geocache cache) {
        return cache != null && !cache.getWaypoints().isEmpty() && cache.getCoords() != null;
    }
Calculates for a cache whether it can have a star (e.g. it has waypoints and header coords)
main/src/main/java/cgeo/geocaching/maps/MapStarUtils.java