class Utilities {

    public static <T> T checkNull(T parameter, String name) throws IllegalArgumentException
    {
        if (parameter == null)
        {
            throw new IllegalArgumentException("Parameter [" + name + "] cannot be null.");
        }
        return parameter;
    }

    private  Utilities();

}