add getContentTypes method. make optional parameter case insensitive. add caps param definition