changed relay.getDomain() to .getAssignedDomain() for clarity