Context cx = getCurrentContext();
value = cx.newObject(scope, "Date", args);
} else if (value instanceof com.vividsolutions.jts.geom.Geometry) {
value = GeometryWrapper.wrap(scope, (com.vividsolutions.jts.geom.Geometry) value);
} else if (value instanceof ReferencedEnvelope) {
value = new Bounds(scope, (ReferencedEnvelope) value);
} else if (value instanceof SimpleFeature) {
value = new Feature(scope, (SimpleFeature) value);
} else if (value instanceof SimpleFeatureType) {
value = new Schema(scope, (SimpleFeatureType) value);
} else if (value instanceof SimpleFeatureCollection) {