public static void notNull(Object parameter, String name, Object... args) throws IllegalArgumentException {
		if (parameter == null) {
			throw new IllegalArgumentException(String.format(name, args) + " parameter is null.");
		}
	}
public static void notNull ( Object parameter , String name , Object ... args ) throws IllegalArgumentException { if ( parameter == null ) { throw new IllegalArgumentException ( String . format ( name , args ) + " parameter is null." ) ; } }
Throw exception if parameter is null. Name parameter can be formatted as accepted by
{@link String#format(String, Object...)}.

@param parameter invocation parameter to test,
@param name parameter name used on exception message,
@param args optional arguments if name is formatted.
@throws IllegalArgumentException if <code>parameter</code> is null.