<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ensureKeysAreSetup(self):
 """ Check whether the keys are setup in the local STP keep. Raises KeysNotFoundException if not found. """

        if not areKeysSetup(self.name, self.keys_dir):
            raise REx(REx.reason.format(self.name) + self.keygenScript)