try {
if (!rcml.isCheckedOutBySession(getSession())) {
throw new RepositoryException("Cannot check in node [" + getSourceURI()
+ "]: not checked out by this session!");
}
rcml.checkIn(this, exists(), getSession().isDirty(this));
} catch (Exception e) {
throw new RepositoryException(e);
}
}
}