'Execute a delegated widget method
@param command: the name of the delegated widget method
@param context: the S3DashboardContext'

def do(self, command, context):

    widget = self.widget
    msg = "%s    does    not    expose    a    '%s'    method"
    exception = (lambda : NotImplementedError((msg % (widget.__class__.__name__, command))))
    try:
        method = getattr(widget, command)
    except AttributeError:
        raise exception()
    if (type(method) is not delegated):
        raise exception()
    return method.execute(self, context)
