code: public static boolean fixPSQ(Document doc) {
  
  	Element datasources = XMLConfigWebFactory.getChildByName(doc.getDocumentElement(), "data-sources", false, true);
  	if (datasources != null && datasources.hasAttribute("preserve-single-quote")) {
  	    Boolean b = Caster.toBoolean(datasources.getAttribute("preserve-single-quote"), null);
  	    if (b != null) datasources.setAttribute("psq", Caster.toString(!b.booleanValue()));
  	    datasources.removeAttribute("preserve-single-quote");
  	    return true;
  	}
  	return false;
      }
docs: MUST remove