if (feature!=null) {
Hashtable<String , String>nameMap = new Hashtable<String , String>();
Hashtable<String , Figure>figureMap = new Hashtable<String , Figure>();
FeatureEditor featureEditor = (FeatureEditor) getContext().getValue(de.FeatureModellingTool.GraphicalEditor.GraphicalEditor.FEATURE_EDITOR);
FeatureModelEditor featureModelEditor = (FeatureModelEditor) getContext().getValue(de.FeatureModellingTool.GraphicalEditor.GraphicalEditor.FEATURE_MODEL_EDITOR);
de.FeatureModellingTool.Pattern.FeatureModelHelper.pasteFeatureTree(root, patternSelection.template.getFeatureModel(), patternSelection.template.getConstraintModel(), feature , featureModel, constraintModel, editorArea.getCurrentView(), featureModelEditor , featureEditor , htCount , nameMap , figureMap);
AutoLayout_Feature layout = new AutoLayout_Feature();
for (Iterator<String> itFeature=figureMap.keySet().iterator() ; itFeature.hasNext() ; ) {