OutputStream os = null;
try {
os = new FileOutputStream(outFile);
// let's invoke the transformer
FeatureTransformer ft = new FeatureTransformer();
ft.setNumDecimals(16);
ft.setNamespaceDeclarationEnabled(false);
ft.getFeatureNamespaces().declarePrefix("topp",
originalSchema.getName().getNamespaceURI());
ft.transform(curCollection, os);
} finally {
os.close();
}
return outFile;