private static void entity(ArrayValue array, StringValue []map,
ArrayValue revMap, int ch, String entity)
{
// XXX: i18n and optimize static variables usage
array.put("" + (char) ch, entity);
StringValue entityValue = new StringBuilderValue(entity);
map[ch & 0xffff] = entityValue;
revMap.put(entityValue, LongValue.create(ch));
}