}
public LeafNode createLeafNode()
{
// Create the leaf node for the found reference
LeafNode node = new LeafNode();
node.setNodeMapper(coreMapper);
node.setLeafData(leafObject);
// Add properties for the comparator and the renderer.
node.addProperty(PRIORITY_KEY, new Integer(3));
node.addProperty(REFERENCE_ITEMTYPE_KEY, referenceItemType);
ModelQualifier qualifier = leafObject.getQualifier();
if (qualifier.getObjectPath() == null)
node.addProperty(ITEMTYPE_KEY, qualifier.getItemType());
return node;
}