class ImageScaler {

  public static BufferedImage scale(BufferedImage image, ImageSize size) {
    if (size == null) {
      log.error("The supplied image size is null.");
      throw new NullPointerException("The supplied image size is null.");
    }

    return scale(image, size.getWidth(), size.getHeight());
  }

  private  ImageScaler();

}