changed setHeaders to abstract method

set setHeaders in ResourceMapper to abstract and implemented it in base
class