class SplitPages implements NextOutputStrategy {

    @Override
    public void ensureIsValid() throws TaskExecutionException {
        if (closingPages.isEmpty()) {
            throw new TaskExecutionException("Unable to split, no page number given.");
        }
    }

    public  SplitPages(Collection<Integer> pages);
    public  SplitPages(Integer... pages);

}