Groovy Code to generate the feature
geometryFactory = JTSFactoryFinder.getGeometryFactory(null)
SimpleFeature toOpenGIS(Feature feature) {
def point = geometryFactory.createPoint(new Coordinate(feature.geometry.asPoint().location.longitude,
feature.geometry.asPoint().location.latitude))
builder.set("Location", point)
builder.set("Name", feature.name)
builder.buildFeature(feature.id)
}