if (rcml.isCheckedOut() && !rcml.isCheckedOutBySession(getSession())) {
throw new RepositoryException("The node [" + this
+ "] is already checked out by another session!");
}
if (!rcml.isCheckedOut()) {
rcml.checkOut(this, restrictedToSession);
}
} catch (RevisionControlException e) {
throw new RepositoryException(e);
}
}