code: public VersionResource getVersion(String name) throws RepositoryException, IllegalResourceTypeException
     {
        return new VersionResource(versionURI(name), versionedResource, versionHistory.getVersion(name), namespaceContext);
     }
docs: Returns the version of resouce by name.
  
  @param name version name
  @return version of a resource
  @throws RepositoryException {@link RepositoryException}
  @throws IllegalResourceTypeException {@link IllegalResourceTypeException}