class Validator {

    public void checkMD5(String input) {
        if (input == null || !md5.matcher(input).matches()) {
            throw new IllegalArgumentException(String.format("Hash is invalid: '%s'", input));
        }
    }

    public  Validator();

}