Class location of converting from normal message to xml

Hi All,

Currently I am reading the source code of the openfire , am looking for the location where the normal message like “hi” is parsing into xml message like

hi

hi

can any one tell me the class location where such conversion takes place ( location of called method and the caller method )