if (object instanceof Double)
retVal = new DoubleAttribute((Double) object);
if (object instanceof Float)
retVal = new DoubleAttribute((Float) object);
if (object instanceof Integer)
retVal = new IntegerAttribute((Integer) object);
if (object instanceof Date)
retVal = new DateTimeAttribute((Date) object);
if (object instanceof Geometry) {
Geometry g = (Geometry) object;
String gmlType = XACMLUtil.getGMLTypeFor(g);