def get_cmd_handler(self, cmd):
cmd = cmd.replace('<STR_LIT:->', '<STR_LIT:_>')<EOL>handler = getattr(self, cmd, None)<EOL>if not handler:<EOL><INDENT>raise BuildException(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(cmd)<EOL>)<EOL><DEDENT>return handler<EOL>
Return an handler for cmd.
The handler and the command should have the same name.
See class description for more info about handlers.

Args:
    cmd (str): The name of the command

Returns:
    callable: which handles cmd

Raises:
    lago.build.BuildException: If an handler for cmd doesn't exist