Implemented contentType exceptions

Implemented contentType exceptions array to resolve getContent() issues with static resources such as pdf.