code: public static ItemsCountDto transformToDto(int value) {
  		if (value < 0) {
  			throw new WebApplicationException("Items count cannot be negative", Status.INTERNAL_SERVER_ERROR);
  		}
  
  		ItemsCountDto result = new ItemsCountDto();
  		result.setValue(value);
  		return result;
  	}
docs: Converts an integer to ItemsCountDto instance.
  
  @param value
  The items count.
  
  @return An itemsCountDto object.
  
  @throws WebApplicationException
  If an error occurs.