Improve a bit the design, by adding a  DAO Interface that all dao objects should implement. While here make the course dao implemente it. It's a pain but it has to be done ...
Like a bot tulululu. More boilerplate code.