ElementTypeDefinition.OBJECT_REF.is(type) ||
ElementTypeDefinition.ALIAS_DEF.is(type) ||
ElementTypeDefinition.ALIAS_REF.is(type) ||
ElementTypeDefinition.VARIABLE_DEF.is(type) ||
ElementTypeDefinition.VARIABLE_REF.is(type)) {
result = new IdentifierElementTypeImpl(this, parent, createId(), def);
} else if (ElementTypeDefinition.EXEC_VARIABLE.is(type)) {
result = new ExecVariableElementTypeImpl(this, parent, createId(), def);
} else {
throw new ElementTypeDefinitionException("Could not resolve element definition '" + type + "'");
}