* For internal use. Doesn't check InvalidItemStateException. May return
* unpooled Version object.
*/
public Version version(String versionName, boolean pool) throws VersionException, RepositoryException
{
JCRName jcrVersionName = locationFactory.parseJCRName(versionName);
VersionImpl version =
(VersionImpl)dataManager.getItem(nodeData(), new QPathEntry(jcrVersionName.getInternalName(), 1), pool,
ItemType.NODE, false);
if (version == null)
{
throw new VersionException("There are no version with name '" + versionName + "' in the version history "
+ getPath());