Changed ResourceProvider utilities to use fluent API style