|| (peform.isLockForce())) {</BUG>
tdoc.setLock(context.getUser(), context);
}
} catch (Exception e) {
e.printStackTrace();
<BUG>log.error("Exception while setting up lock", e);
</BUG>
}
}
return "admin";

return "docalreadyexists";
}
}
try {
XWikiLock lock = tdoc.getLock(context);
if ((lock == null) || (lock.getUserName().equals(context.getUser())) || (peform.isLockForce())) {
tdoc.setLock(context.getUser(), context);
}
} catch (Exception e) {
e.printStackTrace();
LOG.error("Exception while setting up lock", e);
}
}
return "admin";
