private boolean hasAcceptableContenType() {

        List<String> contentTypes = getAcceptableContentTypes();
        if (contentTypes != null) {
            if (contentTypes.isEmpty()) {
                return true;
            }

            String currentContentType = getContentType();
            if (currentContentType == null) {
                return true;
            }

            for (String contentType : contentTypes) {
                if (currentContentType.contains(contentType)) {
                    return true;
                }
            }
        }

        return false;
    }