code: protected void checkNull( Object... objects ) {
          for( Object object : objects ) {
              if (object == null) {
                  throw new ModelsIllegalargumentException("Mandatory input argument is missing. Check your syntax...",
                          this.getClass().getSimpleName(), pm);
              }
          }
      }
docs: Checks if the passed objects are all != null and if one is null, throws Exception.
  
  @param objects the objects to check.