class ValidationUtils {

    public static boolean dataValueIsZeroAndInsignificant( String value, DataElement dataElement )
    {
        AggregationType aggregationType = dataElement.getAggregationType();

        return dataElement.getValueType().isNumeric() && MathUtils.isZero( value ) && !dataElement.isZeroIsSignificant() &&
            !( aggregationType == AggregationType.AVERAGE_SUM_ORG_UNIT || aggregationType == AggregationType.AVERAGE );
    }

}