Added Fluent*ResourceProvider.toFunction()