docs: protected int getQuality(String pQualityStr) {
          if (!StringUtil.isEmpty(pQualityStr)) {
              try {
                  // Get quality constant from Image using reflection
                  Class cl = Image.class;
                  Field field = cl.getField(pQualityStr.toUpperCase());
  
                  return field.getInt(null);
              }
              catch (IllegalAccessException ia) {
                  log("Unable to get quality.", ia);
              }
              catch (NoSuchFieldException nsf) {
                  log("Unable to get quality.", nsf);
              }
          }
  
          return defaultScaleQuality;
      }