public static Object[] sliceFromFinalBoundary(Object[] sequence, Boolean[] boundaries) {
		// Find the last boundary. If no boundary is found, -1 is correct since
		// when it is incremented it will be zero, the first index in the text
		int last = -1;
		for (int i = 0; i < boundaries.length; i++) {
			if (boundaries[i]) last = i;
		}

		// Now get the appropriate slice from last to the end. Increase last
		// by one since it is aligned one left of the text
		return Arrays.copyOfRange(sequence, last + 1, sequence.length, sequence.getClass());
	}