refactoring of label propagation servlet
added class for grouping nodes in json file, needs refactoring