public static Object setField(Object o, Field f, String v) throws IllegalArgumentException, IllegalAccessException {
		if(f.getType().equals(boolean.class)) {
			f.setBoolean(o, Boolean.parseBoolean(v));
		} else if (f.getType().equals(byte.class)) {
			f.setByte(o, Byte.parseByte(v));
		} else if (f.getType().equals(char.class)) {
			f.setChar(o, v.charAt(0));
		} else if (f.getType().equals(short.class)) {
			f.setShort(o, Short.parseShort(v));
		} else if (f.getType().equals(int.class)) {
			f.setInt(o, Integer.parseInt(v));
		} else if (f.getType().equals(long.class)) {
			f.setLong(o, Long.parseLong(v));
		} else if (f.getType().equals(float.class)) {
			f.setFloat(o, Float.parseFloat(v));
		} else if (f.getType().equals(double.class)) {
			f.setDouble(o, Double.parseDouble(v));
		} else {
			f.set(o, v);
		}

		return o;
	}