ColoredShape shape = (ColoredShape) ((PanelMapElementBuilder) shapePanel
.getModelListChoice(0, shapePanel.getCurrentPan(0)))
.buildMapElement(position);
System.out.println("ici5");
// TODO must bug here null pointer exception
Effect e = new EffectSuite(shape, false, MapElement.class, null);
System.out.println("ici6");
Class<?>[] parameterTypes = { ColoredShape.class, Effect.class,
Class.class };
System.out.println("ici7");
Constructor<? extends TriggerBean> tConstructor = tClass
.getConstructor(parameterTypes);
System.out.println("ici8");
Object[] parameter = { shape, e, activatorClass };
System.out.println("ici9");
result = tConstructor.newInstance(parameter);
System.out.println("ici10");
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NoSuchMethodException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SecurityException e1) {
// TODO Auto-generated catch block