/**
* Is a successor of the merge version
*/
protected boolean isSuccessor(NodeData mergeVersion, NodeData corrVersion) throws RepositoryException
{
SessionDataManager mergeDataManager = mergeSession.getTransientNodesManager();
PropertyData successorsProperty =
(PropertyData)mergeDataManager.getItemData(mergeVersion, new QPathEntry(Constants.JCR_SUCCESSORS, 0),
ItemType.PROPERTY);
if (successorsProperty != null)
{
for (ValueData sv : successorsProperty.getValues())
{
String sidentifier = ValueDataUtil.getString(sv);
if (sidentifier.equals(corrVersion.getIdentifier()))
{
return true; // got it
}
// search in successors of the successor
NodeData successor = (NodeData)mergeDataManager.getItemData(sidentifier);
if (successor != null)
{
if (isSuccessor(successor, corrVersion))
{
return true;