For a very short def it's also OK to do:

      def addBaseUri(resource: String = "") = uiRoot + resource