*
* @return the wave built
*/
private Wave createWave(final WaveGroup waveGroup, final WaveType waveType, final Class<?> relatedClass, final WaveData<?>... waveData) {
final Wave wave = new WaveBase();
wave.setWaveGroup(waveGroup);
wave.setWaveType(waveType);
wave.setFromClass(this.getClass());
wave.setRelatedClass(relatedClass);
for (final WaveData<?> wd : waveData) {
wave.addData(wd);
}
// Track wave creation
getLocalFacade().getGlobalFacade().trackEvent(JRebirthEventType.CREATE_WAVE, this.getClass(), wave.getClass());
return wave;
}