QPath.makeChildPath(traverseQPath(tempNode.cpid), InternalQName.parse(tempNode.cname), tempNode.cindex);
}
// primary type if exists in the list of properties
InternalQName ptName = null;
ValueData ptValue = null;
SortedSet<TempPropertyData> ptTempProp = tempNode.properties.get(Constants.JCR_PRIMARYTYPE.getAsString());
if (ptTempProp != null)
{
ptValue = ((ExtendedTempPropertyData)ptTempProp.first()).vdata;
ptName = InternalQName.parse(new String(ptValue.getAsByteArray(), Constants.DEFAULT_ENCODING));
}
// mixins if exist in the list of properties
List<ValueData> mixinsData = new ArrayList<ValueData>();
List<InternalQName> mixins = new ArrayList<InternalQName>();
Set<TempPropertyData> mixinsTempProps = tempNode.properties.get(Constants.JCR_MIXINTYPES.getAsString());
if (mixinsTempProps != null)
{
for (TempPropertyData mxnb : mixinsTempProps)
{
ValueData vdata = ((ExtendedTempPropertyData)mxnb).vdata;
mixinsData.add(vdata);
mixins.add(InternalQName.parse(new String(vdata.getAsByteArray(), Constants.DEFAULT_ENCODING)));
}
}
// build node data. No need to load ACL. The node will be pushed directly for reindexing.
NodeData nodeData =