tasks=null;
}
public boolean canBeUsed(){
if (lockedById<=0) return true;
ApplicationUser user=SessionFactory.getInstance().getSession(false).getUser();
if (user==null/*for offline gantt*/||lockedById==user.getUniqueId()) return true;
return (idleTime>allowedIdleTime);
}