<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_command_by_name(self, blueprint, name):
 """ Get the primary key command it it exists. """

        commands = self._get_commands_by_name(blueprint, name)

        if len(commands):
            return commands[0]