private boolean isVersionsXmlFile(VFSLeaf fVersions) {
    if (fVersions == null || !fVersions.exists()) {
      return false;
    }
    InputStream in = fVersions.getInputStream();
    if (in == null) {
      return false;
    }

    Scanner scanner = new Scanner(in);
    scanner.useDelimiter(TAG_PATTERN);

    boolean foundVersionsTag = false;
    while (scanner.hasNext()) {
      String tag = scanner.next();
      if ("versions".equals(tag)) {
        foundVersionsTag = true;
        break;
      }
    }

    scanner.close();
    IOUtils.closeQuietly(in);
    return foundVersionsTag;
  }
 private Versions isOrphan(VFSLeaf potentialOrphan) {
   try {
     if (potentialOrphan.exists()) {
       VersionsFileImpl versions =
           (VersionsFileImpl) XStreamHelper.readObject(mystream, potentialOrphan);
       return versions;
     }
     return null;
   } catch (Exception e) {
     return null;
   }
 }