retVal = new AnyURIAttribute((URI) object);
if (object instanceof Boolean)
retVal = ((Boolean) object) ? BooleanAttribute.getTrueInstance() : BooleanAttribute
.getFalseInstance();
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) {