code: private boolean isPossibleValue(PdfName value, PdfName[] accepted) {
  		for (int i = 0; i < accepted.length; i++) {
  			if (accepted[i].equals(value)) {
  				return true;
  			}
  		}
  		return false;
  	}
docs: Checks if some value is valid for a certain key.