while (primaryDomains.hasNext()) {
Value domainNode = (Value) primaryDomains.next();
ISelector domain = null;
if (domainNode instanceof Resource) {
// This is a type selector
domain = new TypeSelector((Resource) domainNode);
} else if (domainNode instanceof Literal) {
Literal domainL = (Literal) domainNode;
// TODO: catch bad expressions? throw exceptions?
if (domainL.getDatatype().equals(FresnelCoreTypes.fslSelector)) {
domain = new FSESelector(domainL.getLabel(), _fslContext, conf.getNamespaceMap());