protected void PrepareRoot (RootElement root) { this.root = root; if (root != null) root.Prepare (); }