docs: public boolean handleImageUpload(CmsObject cms, CmsUser user, String uploadedFile) {
  
          boolean result = false;
          try {
              setUserImage(cms, user, uploadedFile);
              result = true;
          } catch (CmsException e) {
              LOG.error("Error setting user image.", e);
          }
          try {
              cms.lockResource(uploadedFile);
              cms.deleteResource(uploadedFile, CmsResource.DELETE_REMOVE_SIBLINGS);
          } catch (CmsException e) {
              LOG.error("Error deleting user image temp file.", e);
          }
          return result;
      }