private Element targetElement;
private EffectEventId effectEventId;
public void activate(final Nifty nifty, final Element element, final EffectProperties parameter) {
TargetElementResolver resolver = new TargetElementResolver(nifty.getCurrentScreen(), element);
targetElement = resolver.resolve(parameter.getProperty("targetElement"));
if (targetElement != null) {
effectEventId = (EffectEventId) parameter.get("effectEventId");
targetElement.startEffect(effectEventId, null);
}
}