private String doubleQuotesHandling(String resource){
  return resource.replaceAll("\"",Matcher.quoteReplacement("\\\""));
}

private String doubleQuotesHandling ( String resource ) { return resource . replaceAll ( "\"" , Matcher . quoteReplacement ( "\\\"" ) ) ; }
this method handles double quotes .
