if (query != null){
obsolete = obsolete || query.isChanged();
AssignedConstraintsSet assignedConstraintsSet = query.getAssignedConstraintsSet();
SelectedGoalsSet selectedGoalsSet = query.getSelectedGoalsSet();
SelectedPrinciplesSet selectedPrinciplesSet = query.getSelectedPrinciplesSet();
if (assignedConstraintsSet!= null)
obsolete = obsolete || assignedConstraintsSet.isChanged();
if (selectedGoalsSet!= null)
obsolete = obsolete || selectedGoalsSet.isChanged();
if (selectedPrinciplesSet!= null)
obsolete = obsolete || selectedPrinciplesSet.isChanged();
}