// Expose a 'window.external' object factory. The created object's
// gwtOnLoad() method will be called when a hosted mode application's
// wrapper
// HTML is done loading.
//
final ExternalFactory externalFactory = new ExternalFactory() {
private ExternalObject externalObject = null;
public ExternalObject createExternalObject() {
if (externalObject == null) {