code: protected void unlockPublishList(CmsPublishJobInfoBean publishJob) throws CmsException {
  
          CmsPublishList publishList = publishJob.getPublishList();
          List<CmsResource> allResources = publishList.getAllResources();
          // unlock them
          CmsDbContext dbc = getDbContext(publishJob.getCmsObject().getRequestContext());
          try {
              Iterator<CmsResource> itResources = allResources.iterator();
              while (itResources.hasNext()) {
                  CmsResource resource = itResources.next();
                  m_driverManager.unlockResource(dbc, resource, true, true);
              }
          } catch (CmsException e) {
              dbc.rollback();
              LOG.error(e.getLocalizedMessage(), e);
              throw e;
          } finally {
              dbc.clear();
          }
      }
docs: Removes all publish locks of resources in a publish list of a publish job.<p>
  
  @param publishJob the publish job
  @throws CmsException if something goes wrong