{
Content c = (Content)i.next();
if( c instanceof PluginContent )
{
PluginContent pc = (PluginContent)c;
if( pc.getPluginName().equals( PLUGIN_IMAGE ) )
{
sb.append( IMG_START + pc.getParameter( PARAM_SRC ) + IMG_END );
}
else
{
m_plugins.add(pc);
sb.append( PLUGIN_START + pc.getPluginName() + ONE_SPACE + m_plugins.size() + PLUGIN_END );
}
}
else if( c instanceof Text )
{
sb.append( ((Text)c).getText() );