private State setPaper(File f) throws Exception {
State state = new State();
if(Oscar3Props.getInstance().verbose) System.out.println("Setting: " + f);
if(new File(f, "scrapbook.xml").exists()) {
if(new File(f, "source.xml").exists()) {
ScrapBook sb = new ScrapBook(f);
sb.makePaper();
state.safDoc = new Builder().build(new File(f, "saf.xml"));
state.sourceDoc = new Builder().build(new File(f, "source.xml"));
} else {
ScrapBook sb = new ScrapBook(f);
Document doc = (Document)sb.getDoc().copy();
Nodes nodes = doc.query("//cmlPile");
for(int i=0;i<nodes.size();i++) nodes.get(i).detach();
state.sourceDoc = (Document)doc.copy();
nodes = state.sourceDoc.query("//ne");
for(int i=0;i<nodes.size();i++) {