NewVirtualFile (int fileId) { if (VfsLog.isVfsTrackingEnabled()) { int maxId = vfsPeer.connection().getRecords().maxAllocatedID(); if (fileId > maxId) { // do not corrupt vfs if provided fileId is out of bounds throw new IndexOutOfBoundsException("recordId(=" + fileId + ") is outside of allocated IDs range (0, " + maxId + "]"); } } try { ascendUntilCachedParent(fileId); } catch (Exception e) { throw vfsPeer.handleError(e); } return findDescendantByIdPath(fileId); }