def create_sender(self, source_address, target_address=None,<EOL>event_handler=None, name=None, properties=None):
ident = name or str(source_address)<EOL>if ident in self._sender_links:<EOL><INDENT>raise KeyError("<STR_LIT>" % ident)<EOL><DEDENT>session = _SessionProxy("<STR_LIT>" % ident, self)<EOL>session.open()<EOL>sl = session.new_sender(ident)<EOL>sl.configure(target_address, source_address, event_handler, properties)<EOL>self._sender_links[ident] = sl<EOL>return sl<EOL>
Factory method for Sender links.