private static String prepareTemplate(String template){
  String[] keywords=new String[]{kw_schema_lower,kw_schema_UPPER,kw_types_plural_lower,kw_types_plural_UPPER,kw_objectname_lower,kw_objectname_UPPER,kw_extension_lower,kw_extension_UPPER};
  for (int i=0; i < keywords.length; i++) {
    template=template.replace(keywords[i],nonOracleChar + keywords[i]);
  }
  String typesPluralTail=kw_types_plural_lower.replace(kw_type_lower,"");
  template=template.replaceAll(kw_type_lower + "(?!" + typesPluralTail+ ")",nonOracleChar + kw_type_lower);
  typesPluralTail=kw_types_plural_UPPER.replace(kw_type_UPPER,"");
  template=template.replaceAll(kw_type_UPPER + "(?!S_PLURAL)",nonOracleChar + kw_type_UPPER);
  return template;
}

private static String prepareTemplate ( String template ) { String [ ] keywords = new String [ ] { kw_schema_lower , kw_schema_UPPER , kw_types_plural_lower , kw_types_plural_UPPER , kw_objectname_lower , kw_objectname_UPPER , kw_extension_lower , kw_extension_UPPER } ; for ( int i = 0 ; i < keywords . length ; i ++ ) { template = template . replace ( keywords [ i ] , nonOracleChar + keywords [ i ] ) ; } String typesPluralTail = kw_types_plural_lower . replace ( kw_type_lower , "" ) ; template = template . replaceAll ( kw_type_lower + "(?!" + typesPluralTail + ")" , nonOracleChar + kw_type_lower ) ; typesPluralTail = kw_types_plural_UPPER . replace ( kw_type_UPPER , "" ) ; template = template . replaceAll ( kw_type_UPPER + "(?!S_PLURAL)" , nonOracleChar + kw_type_UPPER ) ; return template ; }
prepare template replace keywords with % keyword
