class XPathHelper {

    public static String addXhtmlNsToXPath(Document document, String xPath) {
        Validate.notNull(document, "document must not be null.");
        Validate.notEmpty(xPath, "xPath must not be empty.");

        String returnValue = xPath;
        if (hasXhtmlNs(document)) {
            returnValue = addXhtmlNsToXPath(xPath);
        }
        return returnValue;
    }

    private  XPathHelper();

}