<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getBiosampleByName(self, name):
 """ Returns a Biosample with the specified name, or raises a BiosampleNameNotFoundException if it does not exist. """

        if name not in self._biosampleNameMap:
            raise exceptions.BiosampleNameNotFoundException(name)
        return self._biosampleNameMap[name]