public Template(String uri) { Path existing = Resources.findExistingPath(uri); if (existing == null) { throw new IllegalArgumentException("Template not found " + uri); } this.path = existing; }