Added the possibility to pass in a custom dependency name resolver