src/org/kocakosm/pitaya/util/XArrays.java
public static <T> T[] copyOf(T[] original)
	{
		return Arrays.copyOf(original, original.length);
	}
public static <T> T[] copyOf(T[] original)
	{
		return Arrays.copyOf(original, original.length);
	}
Returns a copy of the given array. The original array and the
returned copy will have identical length and content.

@param <T> the type of the elements in the array to copy.
@param original the array to be copied.

@return a copy of the original array.

@throws NullPointerException if {@code original} is {@code null}.