code: protected boolean performDialogOperation() throws CmsException {
  
          // lock the folder
          checkLock(getParamResource());
  
          Iterator<CmsResource> i = getResources().iterator();
          // loop over all image resources to change the properties
          CmsResource res;
          while (i.hasNext()) {
              res = i.next();
              String imageName = res.getName();
              String propertySuffix = "" + imageName.hashCode();
  
              String property;
              I_CmsResourceType type = OpenCms.getResourceManager().getResourceType(res);
              CmsExplorerTypeSettings settings = getSettingsForType(type.getTypeName());
              Iterator<String> itProperties = settings.getProperties().iterator();
              while (itProperties.hasNext()) {
                  property = itProperties.next();
                  CmsProperty currProperty = getCms().readPropertyObject(res, property, false);
                  String newValue = getJsp().getRequest().getParameter(property + propertySuffix);
                  writeProperty(res, property, newValue, currProperty);
              }
          }
  
          // unlock the folder
          CmsObject cms = getCms();
          cms.unlockResource(getParamResource());
          return true;
      }
docs: Performs the comment images operation.
  <p>
  
  @return true, if the resources were successfully processed, otherwise false
  @throws CmsException if commenting is not successful