ReadOnlyVersionManager { public static boolean isVersionStoreTree(@NotNull Tree tree) { return VersionConstants.REP_VERSIONSTORAGE.equals(TreeUtil.getPrimaryTypeName(tree)); }  @NotNull static ReadOnlyVersionManager getInstance(final Root root,
                                                     final NamePathMapper namePathMapper); boolean isCheckedOut(@NotNull Tree tree); @Nullable Tree getVersionHistory(@NotNull Tree versionable); @Nullable Tree getVersion(@NotNull String uuid); @NotNull String getVersionHistoryPath(@NotNull String uuid); @Nullable Tree getBaseVersion(@NotNull Tree versionable); static boolean isVersionStoreTree(@NotNull Tree tree); @Nullable Tree getVersionable(@NotNull Tree versionTree, @NotNull String workspaceName);  }
@Test public void testIsVersionStoreTree() throws Exception { assertFalse(ReadOnlyVersionManager.isVersionStoreTree(root.getTree("/"))); assertFalse(ReadOnlyVersionManager.isVersionStoreTree(root.getTree("/a"))); assertFalse(ReadOnlyVersionManager.isVersionStoreTree(root.getTree("/a/b/c"))); assertTrue(ReadOnlyVersionManager.isVersionStoreTree(root.getTree(VersionConstants.VERSION_STORE_PATH))); Tree versionHistory = versionManager.getVersionHistory(root.getTree("/a")); assertNotNull(versionHistory); assertFalse(ReadOnlyVersionManager.isVersionStoreTree(versionHistory)); assertTrue(ReadOnlyVersionManager.isVersionStoreTree(versionHistory.getParent())); }