private static final ThreadLocal<Escape> escape_ = new ThreadLocal<Escape>();
public static void setEscape(Escape e) {
escape_.set(e);
}
public static Escape getEscape() {
Escape e = escape_.get();
if (null == e) {
ICodeType type = getCodeType();
e = null == type ? Escape.XML : type.escape();
}
return e;