restriction.getConditions().add(conditions);
restriction.setConditionsDescriptor(conditions);
  protected void updateView()  {    descriptor = (ActionDescriptor)getDescriptor();    RestrictionDescriptor restriction = descriptor.getRestriction();    if(restriction == null)    {      restriction = new RestrictionDescriptor();      restriction.setParent(descriptor);      ConditionsDescriptor conditions = DescriptorFactory.getFactory().createConditionsDescriptor();      restriction.getConditions().add(conditions);      conditions.setParent(restriction);      conditions.setType((String)restrict.getSelectedItem());      descriptor.setRestriction(restriction);    }    conditionsModel.setList(((ConditionsDescriptor)restriction.getConditions().get(0)).getConditions());    conditionsTable.getSelectionModel().clearSelection();    preModel.setList(descriptor.getPreFunctions());    pre.getSelectionModel().clearSelection();    postModel.setList(descriptor.getPostFunctions());    post.getSelectionModel().clearSelection();    attributesModel.setMap(descriptor.getMetaAttributes());    attributesTable.getSelectionModel().clearSelection();    validatorsModel.setList(descriptor.getValidators());    validatorsTable.getSelectionModel().clearSelection();    connector.setSource(descriptor);  }