private static Object convert(String value, int type) {
static Object convert(String value, int type) {
	private static Object convert(String value, int type) {		if (value == null) {			return null;		}		switch (type) {			case AttributeDefinition.STRING :				// Both the min and max of STRING are Integers.				return new Integer(value);			case AttributeDefinition.LONG :				return new Long(value);			case AttributeDefinition.INTEGER :				return new Integer(value);			case AttributeDefinition.SHORT :				return new Short(value);			case AttributeDefinition.CHARACTER :				return new Character(value.charAt(0));			case AttributeDefinition.BYTE :				return new Byte(value);			case AttributeDefinition.DOUBLE :				return new Double(value);			case AttributeDefinition.FLOAT :				return new Float(value);			case AttributeDefinition.BIGINTEGER :				try {					Class bigIntClazz = Class.forName("java.math.BigInteger");//$NON-NLS-1$					Constructor bigIntConstructor = bigIntClazz.getConstructor(new Class[] {String.class});					return bigIntConstructor.newInstance(new Object[] {value});				} catch (ClassNotFoundException e) {					e.printStackTrace();					return null;				} catch (SecurityException e) {					e.printStackTrace();					return null;				} catch (NoSuchMethodException e) {					e.printStackTrace();					return null;				} catch (IllegalArgumentException e) {					e.printStackTrace();					return null;				} catch (InstantiationException e) {					e.printStackTrace();					return null;				} catch (IllegalAccessException e) {					e.printStackTrace();					return null;				} catch (InvocationTargetException e) {					e.printStackTrace();					return null;				}			case AttributeDefinition.BIGDECIMAL :				try {					Class bigDecimalClazz = Class.forName("java.math.BigDecimal");//$NON-NLS-1$					Constructor bigDecimalConstructor = bigDecimalClazz.getConstructor(new Class[] {String.class});					return bigDecimalConstructor.newInstance(new Object[] {value});				} catch (ClassNotFoundException e) {					e.printStackTrace();					return null;				} catch (SecurityException e) {					e.printStackTrace();					return null;				} catch (NoSuchMethodException e) {					e.printStackTrace();					return null;				} catch (IllegalArgumentException e) {					e.printStackTrace();					return null;				} catch (InstantiationException e) {					e.printStackTrace();					return null;				} catch (IllegalAccessException e) {					e.printStackTrace();					return null;				} catch (InvocationTargetException e) {					e.printStackTrace();					return null;				}			case AttributeDefinition.BOOLEAN :				return new Boolean(value);			default :				// Unknown data type				return null;		}	}