code: public String getRestrictedSizeScaleParam(int maxHeight, int maxWidth) {
  
          String result = toString();
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(result)) {
              return getRestrictedSizeParam(maxHeight, maxWidth).toString();
          }
          if ((getOrgWidth() < maxWidth) && (getOrgHeight() < maxHeight)) {
              return "";
          }
          CmsCroppingParamBean restricted = new CmsCroppingParamBean();
          restricted.setTargetHeight(maxHeight);
          restricted.setTargetWidth(maxWidth);
          return restricted.toString();
      }
docs: Returns the scale parameter to this bean for a restricted maximum target size.<p>
  
  @param maxHeight the max height
  @param maxWidth the max width
  
  @return the scale parameter