made changes so that dtoMapper can be used in frameworks like Spring