public static String checkAndReplaceLiterals(String instStr){
  String tmp=instStr;
  if (tmp.contains(COMPONENTS_DELIM)) {
    tmp=tmp.replaceAll(COMPONENTS_DELIM,".");
    LOG.warn("Replaced special literal character sequence " + COMPONENTS_DELIM + " with '.'");
  }
  if (tmp.contains(ELEMENT_DELIM)) {
    tmp=tmp.replaceAll(ELEMENT_DELIM,".");
    LOG.warn("Replaced special literal character sequence " + ELEMENT_DELIM + " with '.'");
  }
  if (tmp.contains(LEVELIN)) {
    tmp=tmp.replaceAll(LEVELIN,"(");
    LOG.warn("Replaced special literal character sequence " + LEVELIN + " with '('");
  }
  if (tmp.contains(LEVELOUT)) {
    tmp=tmp.replaceAll(LEVELOUT,")");
    LOG.warn("Replaced special literal character sequence " + LEVELOUT + " with ')'");
  }
  if (tmp.contains(PARFOR_CDATA_END)) {
    tmp=tmp.replaceAll(PARFOR_CDATA_END,".");
    LOG.warn("Replaced special literal character sequence " + PARFOR_CDATA_END + " with '.'");
  }
  return tmp;
}

public static String checkAndReplaceLiterals ( String instStr ) { String tmp = instStr ; if ( tmp . contains ( COMPONENTS_DELIM ) ) { tmp = tmp . replaceAll ( COMPONENTS_DELIM , "." ) ; LOG . warn ( "Replaced special literal character sequence " + COMPONENTS_DELIM + " with '.'" ) ; } if ( tmp . contains ( ELEMENT_DELIM ) ) { tmp = tmp . replaceAll ( ELEMENT_DELIM , "." ) ; LOG . warn ( "Replaced special literal character sequence " + ELEMENT_DELIM + " with '.'" ) ; } if ( tmp . contains ( LEVELIN ) ) { tmp = tmp . replaceAll ( LEVELIN , "(" ) ; LOG . warn ( "Replaced special literal character sequence " + LEVELIN + " with '('" ) ; } if ( tmp . contains ( LEVELOUT ) ) { tmp = tmp . replaceAll ( LEVELOUT , ")" ) ; LOG . warn ( "Replaced special literal character sequence " + LEVELOUT + " with ')'" ) ; } if ( tmp . contains ( PARFOR_CDATA_END ) ) { tmp = tmp . replaceAll ( PARFOR_CDATA_END , "." ) ; LOG . warn ( "Replaced special literal character sequence " + PARFOR_CDATA_END + " with '.'" ) ; } return tmp ; }
replacement of internal delimiters occurring in literals of instructions in order to ensure robustness of serialization and parsing . ( e . g . print ( " a , b " ) would break the parsing of instruction that internally are separated with a " , " )
