@Override
    public GeoPrimitive applyDefaultStyle(final GeoStyle style) {
        if (style == null || Objects.equals(getStyle(), style)) {
            return this;
        }

        return new GeoPrimitive(this, style);
    }
This constructor is specifically for creating objects with applied default style
main/src/main/java/cgeo/geocaching/models/geoitem/GeoPrimitive.java