// Construct a list of attributes needed for CTA processing. This includes inherited attributes as well.
XMLAttributes ctaAttributes = getAttributesForCTA(attributes);
for (int i = 0; i < alternatives.length; i++) {
Test test = alternatives[i].getTest();
if (test != null && test.evaluateTest(element, ctaAttributes)) {
currentType = alternatives[i].getTypeDefinition();
typeSelected = true;
break;
}
}