public MapElement buildMapElement(Point position) {
Effect result=null;
try {
Class<? extends Effect> tClass=(Class<? extends Effect>) eGenerator.getEffectClass(EffectChoiceListGenerator.path,(String)listEffect.getComboBoxe(0).getSelectedItem());
Class<? extends BasicBean> elementClass=(Class<? extends BasicBean>) eGenerator.getElementClass(EffectChoiceListGenerator.path,(String)listEffect.getComboBoxe(1).getSelectedItem(),(String)listEffect.getComboBoxe(0).getSelectedItem());
ColoredShape shape=(ColoredShape) ((PanelMapElementBuilder)shapePanel.getModelListChoice(0,shapePanel.getCurrentPan(0))).buildMapElement(position);
Boolean oneUse=isOneUse.isSelected();
System.out.println("oneUse="+oneUse);
Class<?>[] parameterTypes={ColoredShape.class,Boolean.class,Class.class};
Constructor<? extends Effect> tConstructor=tClass.getConstructor(parameterTypes);
Object[] parameter={shape,oneUse,elementClass};