@Override
public boolean isLocked(boolean owner) throws CaoException {
if (getId()==null) throw new CaoException("Not a canonical object");
try {
//TODO performance ....
IDfTypedObject obj = ((DctmConnection)getConnection()).getDctmObject(getId());
if (obj instanceof IDfSysObject) {
if (owner)
return ((IDfSysObject)obj).isCheckedOutBy( ((DctmConnection)getConnection()).getUser() );
else
return ((IDfSysObject)obj).isCheckedOut();