private void initPageResources() throws InterruptedException {
        Resources res = library.getResources(entries, "Resources");
        if (res == null) {
            PageTree pt = getParent();
            while (pt != null) {
                if (Thread.interrupted()) {
                    throw new InterruptedException("Page Resource initialization thread interrupted");
                }
                Resources parentResources = pt.getResources();
                if (parentResources != null) {
                    res = parentResources;
                    break;
                }
                pt = pt.getParent();
            }
        }
        resources = res;
        if (resources != null) {
            resources.addReference(this);
        }
    }