} else if (dimension instanceof IDimension2DX) {
range = new Range2DXImpl();
trajectory = new Trajectory2DXImpl();
((IDimension2DX) dimension).getRangesList().add((IRange2DX) range);
} else if (dimension instanceof IDimension2DY) {
range = new Range2DYImpl();
trajectory = new Trajectory2DYImpl();
((IDimension2DY) dimension).getRangesList().add((IRange2DY) range);
} else if (dimension instanceof IDimensionEnergy) {
range = new RangeEnergyImpl();
trajectory = new TrajectoryEnergyImpl();