public static Integer[] intToIntegerArray(int[] array)
    {
	Integer[] result = {};

	if(array != null)
	{
	    if(array.length > 0)
	    {
		result = new Integer[array.length];
		for(int i = 0; i < array.length;i++)
		    result[i] = (Integer)array[i];

		return result;
	    }else { return result; }
	}else { return result; }
    }