private static void addBlocksToRootUsedInEditingScreen(RootUsedInEditingScreen rootUsedInEditingScreen, Root root) {
        List<BlockUsedInEditingScreen> blocksUsedInEditingScreen = new ArrayList<BlockUsedInEditingScreen>();

        for ( Node node : root.getChildren()) {
            if ( node instanceof Block && !(node instanceof PageNumberBlock) && !(node instanceof ImageBlock) ) {
                BlockUsedInEditingScreen blockUsedInEditingScreen = new BlockUsedInEditingScreen((Block) node);
                blockUsedInEditingScreen.setParent(rootUsedInEditingScreen);
                addLinesToABlockUsedInEditingScreen(blockUsedInEditingScreen, (Block) node);
                blocksUsedInEditingScreen.add(blockUsedInEditingScreen);
            }
        }

        rootUsedInEditingScreen.addChildren(blocksUsedInEditingScreen);
    }