code: public void setImageName(String imageName) {
  		if ((imageName != null) && !imageName.endsWith(".jpg")) {
  			throw new IllegalArgumentException("Image must be a jpeg file.");
  		}
  		this.imageName = imageName;
  	}
docs: Set image name : has meaning just for IMAGE_FORMAT type
  
  @param imageName image name