private void initializeMaterials(Set<Material> materials) { for (Material each: materials) { each.getDescription(); if (each.getUnitType() != null) { each.getUnitType().getMeasure(); } } }
private String asStringForUser(Material material) { return String.format("{code: %s, description: %s}", material.getCode(), material .getDescription()); }