for (NodeTypeData ntData : nodeTypes)
{
if (ntData.getPrimaryItemName() != null)
{
Item primaryItem =
dataManager.getItem(nodeData(), new QPathEntry(ntData.getPrimaryItemName(), 0), true, ItemType.UNKNOWN);
if (primaryItem != null)
{
return primaryItem;
}