def getLicenseByKeyword(self, keyword):
    if (not hasattr(self, '_licensesDict')):
        self._licensesDict = {}
        for license in self.licenses:
            self._licensesDict[license.keyword] = license
    if (keyword in self._licensesDict):
        return self._licensesDict[keyword]
def getLicenseByKeyword(self, keyword):
    if (not hasattr(self, '_licensesDict')):
        self._licensesDict = {}
        for license in self.licenses:
            self._licensesDict[license.keyword] = license
    if (keyword in self._licensesDict):
        return self._licensesDict[keyword]