FeatureUtil { public static String escapeFeatureName(String name) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < name.length(); i++) { String c = name.substring(i, i + 1); if (StringUtils.isAlphanumeric(c) || c.equals("_")) { sb.append(c); } else { sb.append("u"); sb.append(c.codePointAt(0)); } } return sb.toString(); }  static String escapeFeatureName(String name); static Set<String> getStopwords(String inputFile, boolean toLowerCase); @SuppressWarnings("unchecked") static T createResource(Class<T> aClass, Object... aParam); @SuppressWarnings("unchecked") static T createResource(TcFeature feature);  }
@Test public void EscapeFeatureNameTest() throws Exception { assertTrue(FeatureUtil.escapeFeatureName("mY&#@\\(_feature12") .equals("mYu38u35u64u92u40_feature12")); }