- //NamedAreaLevel highestAreaLevel = (NamedAreaLevel) HibernateProxyHelper.deproxy(highestArea.getLevel());\r
- //NamedAreaLevel currentLevel = (NamedAreaLevel) HibernateProxyHelper.deproxy(level);\r
- //if (highestAreaLevel.compareTo(currentLevel) == 0){//if distribution.status is relevant\r
- \r
- if (highestArea.getLevel().getLabel().compareTo(level.getLabel()) == 0){\r
- highestDistNode = new TreeNode<Distribution>(distribution);//distribution.area comes from proxy!!!!\r
+ sameLevel = highestArea.getLevel().getLabel().compareTo(level.getLabel()) == 0;\r
+ if (sameLevel){\r
+ highestDistNode = new TreeNode<Distribution>(distribution);\r