Make getRootPath and isAccessible static methods