NOJIRA Refactored AimPartition to scala