NodeTypeDataManager ntManager = ((ExtendedWorkspace)userSession.getWorkspace()).getNodeTypesHolder();
LocationFactory locationFactory = userSession.getLocationFactory();
for (int i = 0; i < criteria.getNodeTypeName().length; i++)
{
InternalQName name = locationFactory.parseJCRName(criteria.getNodeTypeName()[i]).getInternalName();
NodeTypeData criteriaNT = ntManager.getNodeType(name);
InternalQName[] testQNames;
if (criteriaNT.isMixin())
{
testQNames = node.getMixinTypeNames();