RepositoryException
{
if (!this.isNodeType(Constants.MIX_VERSIONABLE))
{
throw new UnsupportedRepositoryOperationException("Node is not mix:versionable " + getPath());
}
PropertyData vhProp =
(PropertyData)dataManager.getItemData(nodeData(), new QPathEntry(Constants.JCR_VERSIONHISTORY, 1),
ItemType.PROPERTY);
if (vhProp == null)
throw new UnsupportedRepositoryOperationException("Node does not have jcr:versionHistory " + getPath());
try
{
return (VersionHistoryImpl)dataManager.getItemByIdentifier(new String(vhProp.getValues().get(0)
.getAsByteArray()), pool, false);