class Assertion {

    public static void notNullOrEmpty(String argument, String name) {
        if (argument == null || argument.isEmpty()) {
            throw new InvalidArgumentException(name + " cannot be null or empty");
        }
    }

}