retVal = new DateTimeAttribute((Date) object);
if (object instanceof Geometry) {
Geometry g = (Geometry) object;
String gmlType = XACMLUtil.getGMLTypeFor(g);
try {
retVal = new GeometryAttribute(g, g.getUserData().toString(), null,
GMLVersion.Version3, gmlType);
} catch (URISyntaxException e) {
throw new RuntimeException(e);
}
}