formatTag function added.
clearEntityCache fixed.