Made the DataSourceFactory more generic so that any amount of Resources can be passed in.