code: protected static BufferedImage fakeAOI(final BufferedImage pImage, final ImageWriteParam pParam) {
          return IIOUtil.fakeAOI(pImage, getSourceRegion(pParam, pImage.getWidth(), pImage.getHeight()));
      }
docs: Utility method for getting the area of interest (AOI) of an image.
  The AOI is defined by the {@link javax.imageio.IIOParam#setSourceRegion(java.awt.Rectangle)}
  method.
  <p/>
  Note: If it is possible for the writer to write the AOI directly, such a
  method should be used instead, for efficiency.
  
  @param pImage the image to get AOI from
  @param pParam the param optionally specifying the AOI
  
  @return a {@code BufferedImage} containing the area of interest (source
  region), or the original image, if no source region was set, or
  {@code pParam} was {@code null}