public boolean aggregationLevelIsValid(int organisationUnitLevel,int dataValueLevel){
  if (aggregationLevels.size() == 0) {
    return true;
  }
  final Integer aggregationLevel=getRelevantAggregationLevel(organisationUnitLevel);
  return aggregationLevel == null || dataValueLevel <= aggregationLevel;
}

public boolean aggregationLevelIsValid ( int organisationUnitLevel , int dataValueLevel ) { if ( aggregationLevels . size ( ) == 0 ) { return true ; } final Integer aggregationLevel = getRelevantAggregationLevel ( organisationUnitLevel ) ; return aggregationLevel == null || dataValueLevel <= aggregationLevel ; }
tests whether the hierarchy level of the organisationunit associated with the relevant datavalue is equal to or higher than the relevant aggregation level . returns true if no aggregation levels exist .
