def addResource(self, resource):
        # Check if the resource is already mapped
        if resource in self._resourceKeyMap:
            return

        # Generate key
        self._lastResourceKeyNumber += 1
        key = str(self._lastResourceKeyNumber)

        # Add the resource to mappings
        self._resourceKeyMap[resource] = key
        self._keyResourceMap[key] = resource
Adds new resource to the application. The resource can be accessed
dataset/ETHPy150Open rwl/muntjac/muntjac/application.py/Application.addResource