if ( container != this || htmlDoc == null ) {
DOMService service = null;
try {
service = DOMService.getService( XApplet.getApplet() );
type = (String)service.invokeAndWait( new DOMAction()
{
public Object run( DOMAccessor accessor )
{
htmlDoc = (HTMLDocument)accessor.getDocument( XApplet.getApplet() );
return "";