code: void unlockResource() {
  
          if (!shouldUnlockAutomatically()) {
              return;
          }
          if (m_entityId != null) {
              final CmsUUID structureId = CmsContentDefinition.entityIdToUuid(m_entityId);
              if (m_deleteOnCancel) {
                  CmsRpcAction<Void> action = new CmsRpcAction<Void>() {
  
                      @Override
                      public void execute() {
  
                          CmsCoreProvider.getVfsService().syncDeleteResource(structureId, this);
                      }
  
                      @Override
                      protected void onResponse(Void result) {
  
                          // nothing to do
                      }
                  };
                  action.executeSync();
              } else {
                  CmsCoreProvider.get().unlock(structureId);
              }
          }
      }
docs: Unlocks the edited resource.<p>