class GrainUploader {

    public void uploadGrains(Set<Node> allNodes, List<GrainProperties> grainPropertiesList, ExitCriteriaModel exitModel, SaltConnector sc,
            ExitCriteria exitCriteria) throws Exception {
        if (!grainPropertiesList.isEmpty()) {
            for (GrainProperties grainProperties : grainPropertiesList) {
                handleGrainProperties(allNodes, exitModel, sc, exitCriteria, grainProperties);
            }
        }
    }

}