code: public static void notNullOrEmpty(Object[] parameter, String name) throws IllegalArgumentException {
  		if (parameter == null || parameter.length == 0) {
  			throw new IllegalArgumentException(name + " parameter is empty.");
  		}
  	}
docs: Test if array parameter is not null or empty.
  
  @param parameter invocation array parameter,
  @param name the name of invocation parameter.
  @throws IllegalArgumentException if <code>parameter</code> array is null or empty.