cms.deleteResource(cms.getSitePath(resource), mode); } finally { if (lockRecord.getChange().equals(LockChange.locked)) { if (!resource.getState().isNew()) { try {
public boolean unlock() throws CmsException { if (!m_lockRecord.getChange().equals(LockChange.unchanged) || m_new) { m_cms.unlockResource(m_file); return true; } else { return false; } }