@Override
        public GeoPrimitive[] newArray(final int size) {
            return new GeoPrimitive[size];
        }
This constructor is specifically for creating objects with applied default style
main/src/main/java/cgeo/geocaching/models/geoitem/GeoPrimitive.java