public NutrientProfile(HashMap<String, Float> nutrientAmounts) {

		/**
		 * Fill the map with the nutrient names.
		 */
		for(String s : this.nutrientNames) {
			this.nutrientAmounts.put(s, 0f);
		}
		
		if(nutrientAmounts == null) return;

		/**
		 * Set the nutrient amounts if the nutrient name exists
		 */
		for (Entry<String, Float> entry : nutrientAmounts.entrySet()) {
			String key = entry.getKey();
			Float value = entry.getValue();

			if(this.nutrientAmounts.containsKey(key)){
				this.nutrientAmounts.put(key, value);
			}

		}

	}