return "docalreadyexists";
}
}
try {
XWikiLock lock = tdoc.getLock(context);
<BUG>if ((lock == null) || (lock.getUserName().equals(context.getUser()))

|| (peform.isLockForce())) {</BUG>
tdoc.setLock(context.getUser(), context);
}

return "docalreadyexists";
}
}
try {
XWikiLock lock = tdoc.getLock(context);
if ((lock == null) || (lock.getUserName().equals(context.getUser())) || (peform.isLockForce())) {
tdoc.setLock(context.getUser(), context);
}
