/** * Returns the first of the tei search organisation units associated with the * user. If none, returns the first of the data capture organisation units. * If none, return nulls. */ public OrganisationUnit getTeiSearchOrganisationUnitWithFallback() { return hasTeiSearchOrganisationUnit() ? getTeiSearchOrganisationUnit() : getOrganisationUnit(); }