public static boolean[] mergeArrays (boolean[] firstArray, boolean[] secondArray) {
	    int fLen = firstArray.length;
	    int sLen = secondArray.length;

	    boolean[] result = (boolean[]) Array.newInstance(firstArray.getClass().getComponentType(), fLen+sLen);
	    System.arraycopy(firstArray, 0, result, 0, fLen);
	    System.arraycopy(secondArray, 0, result, fLen, sLen);

	    return result;
	}