public static <T> T checkNotNull(
      T obj,
       String errorMessageTemplate,
       Object p1,
       Object p2,
       Object p3,
       Object p4) {
    if (obj == null) {
      throw new NullPointerException(format(errorMessageTemplate, p1, p2, p3, p4));
    }
    return obj;
  }
Ensures that an object reference passed as a parameter to the calling method is not null.

<p>See {@link #checkNotNull(Object, String, Object...)} for details.
common/util/src/main/java/io/apiman/common/util/Preconditions.java