NXCALS-1381 Added grouping on java side.
requested to merge feature-NXCALS-1381-move-code-that-determine-if-there-is-more-variables-pointing-to-one-filed-form-sql-to-java into develop
#Merge request template @acc-logging-team - please have a look for approval.
Please describe the merge request here.