@Override
public void removeItem(String absPath) throws VersionException,
LockException, ConstraintViolationException, RepositoryException {
// check sanity of this session
sanityCheck();
Item item;
try {
Path p = getQPath(absPath).getNormalizedPath();
if (!p.isAbsolute()) {
throw new RepositoryException("not an absolute path: " + absPath);
}
item = getItemManager().getItem(p);
} catch (AccessDeniedException e) {
throw new PathNotFoundException(absPath);
} catch (NameException e) {
String msg = "invalid path:" + absPath;
log.debug(msg);
throw new RepositoryException(msg, e);
}
item.remove();
}