* @param descr
*/
private void flatten(ReturnValueRestrictionDescr descr) {
AnalyticsData data = AnalyticsDataFactory.getAnalyticsData();
ReturnValueRestriction restriction = new ReturnValueRestriction();
restriction.setRuleId(currentRule.getId());
restriction.setRuleName(currentRule.getRuleName());
restriction.setPatternId(currentPattern.getId());
restriction.setPatternIsNot(currentPattern.isPatternNot());
restriction.setConstraintId(currentConstraint.getId());
restriction.setFieldId(currentConstraint.getFieldId());
restriction.setEvaluator(descr.getEvaluator());
restriction.setClassMethodName(descr.getClassMethodName());
restriction.setContent(descr.getContent());
restriction.setDeclarations(descr.getDeclarations());
data.save(restriction);
solvers.addRestriction(restriction);
}