private static Geocache createCache() {
        final Geocache newCache = new Geocache();

        newCache.setAttributes(Collections.emptyList()); // override the lazy initialized list
        newCache.setWaypoints(Collections.emptyList(), false); // override the lazy initialized list

        return newCache;
    }
Geocache factory method. This explicitly sets several members to empty lists, which does not happen with the
default constructor.
main/src/main/java/cgeo/geocaching/files/GPXParser.java