private String nullIfEmpty(String s) {
        if (s==null) return s;
        s=s.trim();
        if (s.isEmpty()) return null;
        return s;
    }
Returns the page element corresponding to the given node, never null
container-search/src/main/java/com/yahoo/search/pagetemplates/config/PageTemplateXMLReader.java