public Object prepare ( final Object value ) { if ( value == null || value instanceof String || ! stringify ) { return value ; } else { if ( value instanceof Boolean ) { return PREFIX_BOOLEAN . concat ( value . toString ( ) ) ; } else if ( value instanceof Integer ) { return PREFIX_INT . concat ( value . toString ( ) ) ; } else if ( value instanceof Long ) { return PREFIX_LONG . concat ( value . toString ( ) ) ; } else if ( value instanceof Date ) { return PREFIX_DATE . concat ( newSdf ( ) . format ( ( Date ) value ) ) ; } else if ( value instanceof URI ) { return PREFIX_URI . concat ( value . toString ( ) ) ; } else { return PREFIX_SB64 . concat ( serializationHelper . serializeToBase64 ( ( Serializable ) value ) ) ; } } }
Before saving the attribute into the attributes map .