public Result setLang ( Result result , Lang lang ) { return messages . setLang ( result . asScala ( ) , lang ) . asJava ( ) ; }
Given a Result and a Lang return a new Result with the lang cookie set to the given Lang .