code: public static boolean isVersion(Node node)
     {
        try
        {
           if (node.isNodeType("nt:version"))
              return true;
           return false;
        }
        catch (RepositoryException exc)
        {
           LOG.error(exc.getMessage(), exc);
           return false;
        }
     }
docs: If the node is version.
  
  @param node node
  @return true if node is version false if not