ds = new PostgisNGDataStoreFactory().createDataStore(params);
final List<AttributeDescriptor> schema = new ArrayList<AttributeDescriptor>();
schema.add(new AttributeDescriptorImpl(new AttributeTypeImpl(new NameImpl("name"),
String.class, false, false, null, null, null), new NameImpl("name"), 0, 0,
true, ""));
SimpleFeatureType featureType = new SimpleFeatureTypeImpl(new NameImpl(noGeomFirst),
schema, null, false, null, null, null);
ds.createSchema(featureType);
featureType = new SimpleFeatureTypeImpl(new NameImpl(noGeomLast), schema, null, false,
null, null, null);
ds.createSchema(featureType);
} finally {
if (ds != null) {
ds.dispose();