def METHOD_NAME(self):
    vself = self.v_self()
    out = '\n'
    if IWriteLock.providedBy(vself):
        out += ('  <n:lockentry>\n'
                '  <d:lockscope><d:exclusive/></d:lockscope>\n'
                '  <d:locktype><d:write/></d:locktype>\n'
                '  </n:lockentry>\n  ')
    return out