code: protected void checkStatus(List<ValidationWarning> warnings, Status... allowed) {
  		Status actual = getProperty(Status.class);
  		if (actual == null) {
  			return;
  		}
  
  		List<String> allowedValues = new ArrayList<String>(allowed.length);
  		for (Status status : allowed) {
  			String value = status.getValue().toLowerCase();
  			allowedValues.add(value);
  		}
  
  		String actualValue = actual.getValue().toLowerCase();
  		if (!allowedValues.contains(actualValue)) {
  			warnings.add(new ValidationWarning(13, actual.getValue(), allowedValues));
  		}
  	}
docs: Utility method for validating the {@link Status} property of a component.
  @param warnings the list to add the warnings to
  @param allowed the valid statuses