class XmlMessageTypeChecker implements ConditionChecker {

    @Override
    public boolean checkCondition(final WilmaHttpRequest request, final ParameterList parameterList) {
        boolean result = false;
        String contentType = request.getHeader(CONTENT_TYPE_HEADER);
        if (checkContentTypeIsXml(contentType)) {
            result = Boolean.valueOf(evaluateQueryWithParamCheck(request, parameterList));
        }
        return result;
    }

}