'Raises an exception if fail is True and the entity doesn\'t exist
See also: The \'entity\' property.'

def getEntityByID(self, ID, fail=False):

    if fail:
        return self._entities[ID]
    else:
        return self._entities.get(ID, None)
