protected Object convertAttributeValue(Object value){
  if (value == null || value instanceof String || value instanceof Byte || value instanceof Long || value instanceof Double || value instanceof Boolean || value instanceof Integer || value instanceof Short || value instanceof Float) {
    return value;
  }
  return value.toString();
}

protected Object convertAttributeValue ( Object value ) { if ( value == null || value instanceof String || value instanceof Byte || value instanceof Long || value instanceof Double || value instanceof Boolean || value instanceof Integer || value instanceof Short || value instanceof Float ) { return value ; } return value . toString ( ) ; }
convert the attribute value if necessary .
