public void setParticipantAndAddFeature(P participant) { if (this.participant != null){ this.participant.removeFeature(this); } if (participant != null){ participant.addFeature(this); } }
Feature clone = new DefaultFeature(); FeatureCloner.copyAndOverrideBasicFeaturesProperties((Feature)f, clone); target.addFeature(clone);