'Load the component with the specified name and version.'

def LoadComponentOnClient(self, name=None, version=None, next_state=None):

    if (next_state is None):
        raise TypeError('next_state    not    specified.')
    component_urn = config.CONFIG.Get('Config.aff4_root').Add('components').Add(('%s_%s' % (name, version)))
    try:
        fd = aff4.FACTORY.Open(component_urn, aff4_type=collects.ComponentObject, mode='r', token=self.token)
    except IOError as e:
        logging.info('Component    not    found:    %s', e)
        self.CallStateInline(next_state=next_state)
        return
    component_summary = fd.Get(fd.Schema.COMPONENT)
    if (component_summary is None):
        raise RuntimeError(('Component    %s    (%s)    does    not    exist    in    data    store.' % (name, version)))
    self.CallClient(server_stubs.LoadComponent, summary=component_summary, next_state='ComponentLoaded', request_data=dict(next_state=next_state))
