Added the automapper support.