Since this method is only being called from parent class, which relies on apache library to identify content type, dont think we would run into a situation where content type is null. @VineetKanwal1 can you confirm.