code: public static Style createDefaultStyle( SimpleFeatureCollection featureCollection ) {
          GeometryDescriptor geometryDescriptor = featureCollection.getSchema().getGeometryDescriptor();
          Style style = null;
          if (EGeometryType.isPoint(geometryDescriptor)) {
              style = createDefaultPointStyle();
          } else if (EGeometryType.isLine(geometryDescriptor)) {
              style = createDefaultLineStyle();
          } else if (EGeometryType.isPolygon(geometryDescriptor)) {
              style = createDefaultPolygonStyle();
          }
          if (style != null) {
              style.setName(featureCollection.getSchema().getTypeName());
          }
          return style;
      }
docs: Creates a default {@link Style} for a featurecollection.
  
  @return the default style.