public static <T1, T2> boolean hasEntries(final Map<T1, T2> map) {
        return map != null && !map.isEmpty();
    }
@return True if the map is non-null and not empty
stroom-util-shared/src/main/java/stroom/util/shared/NullSafe.java