class SoapMessageNameResolver implements MessageNameResolver {

    @Override
    public String resolve(final WilmaHttpEntity request, final ParameterList parameters) {
        String name;
        try {
            name = xmlTypeResolver.getValue(SOAP_TYPE_QUERY, request.getBody());
        } catch (Exception e) {
            logger.debug("Invalid XPath expression: " + SOAP_TYPE_QUERY, e);
            name = "";
        }
        return name;
    }

}