def METHOD_NAME(self, func):
    '''decorator to change connection function to local connection by replacing given iri to local address
    '''
    def functionWrapper(self, address):
        address = self.Uri2Local(address)
        func(self, address)
    return functionWrapper    