* the weight of the Decomposition (int)
* @return the created PrioritizedDecomposition
*/
protected PrioritizedDecomposition createPriorizedDecomposition(
GSSQuery query, Decomposition decomposition, int weight) {
PrioritizedDecomposition newPriorizedDecomposition = QueryFactory.eINSTANCE
.createPrioritizedDecomposition();
newPriorizedDecomposition.setDecompostion(decomposition);
newPriorizedDecomposition.setWeight(String.valueOf(weight));
if (query.getSelectedGoalsSet() == null)
query.setSelectedGoalsSet(QueryFactory.eINSTANCE
.createSelectedGoalsSet());
query.getSelectedGoalsSet().getPriorizedDecompositionRelations()
.add(newPriorizedDecomposition);