public void generateSpineFromTableOfContents() { Spine spine = new Spine(tableOfContents); // in case the tocResource was already found and assigned spine.setTocResource(this.spine.getTocResource()); this.spine = spine; }