public static LocalProperties combine(LocalProperties lp1, LocalProperties lp2) {
		if (lp1.ordering != null) {
			return lp1;
		} else if (lp2.ordering != null) {
			return lp2;
		} else if (lp1.groupedFields != null) {
			return lp1;
		} else if (lp2.groupedFields != null) {
			return lp2;
		} else if (lp1.uniqueFields != null && !lp1.uniqueFields.isEmpty()) {
			return lp1;
		} else if (lp2.uniqueFields != null && !lp2.uniqueFields.isEmpty()) {
			return lp2;
		} else {
			return lp1;
		}
	}
public static LocalProperties combine ( LocalProperties lp1 , LocalProperties lp2 ) { if ( lp1 . ordering != null ) { return lp1 ; } else if ( lp2 . ordering != null ) { return lp2 ; } else if ( lp1 . groupedFields != null ) { return lp1 ; } else if ( lp2 . groupedFields != null ) { return lp2 ; } else if ( lp1 . uniqueFields != null && ! lp1 . uniqueFields . isEmpty ( ) ) { return lp1 ; } else if ( lp2 . uniqueFields != null && ! lp2 . uniqueFields . isEmpty ( ) ) { return lp2 ; } else { return lp1 ; } }
--------------------------------------------------------------------------------------------