code: protected String escapeApostrophes(String text) {
  		String resultString;
  		if (text.contains("'")) {
  			StringBuilder stringBuilder = new StringBuilder();
  			stringBuilder.append("concat('");
  			stringBuilder.append(text.replace("'", "',\"'\",'"));
  			stringBuilder.append("')");
  			resultString = stringBuilder.toString();
  		} else {
  			resultString = "'" + text + "'";
  		}
  		return resultString;
  	}
docs: Returns a string to resolve apostrophe issue in xpath
  
  @param text
  @return the apostrophe resolved xpath value string