public static void printInCaseOfErrorsOrWarnings(Context context, long threshold) {
    """
	Print the contents of the context status, but only if they contain
	warnings or errors occurring later then the threshold.
	
	@param context
    """
    if (context == null) {
      throw new IllegalArgumentException("Context argument cannot be null");
    }

    StatusManager sm = context.getStatusManager();
    if (sm == null) {
      ps.println("WARN: Context named \"" + context.getName()
          + "\" has no status manager");
    } else {
      StatusUtil statusUtil = new StatusUtil(context);
      if (statusUtil.getHighestLevel(threshold) >= ErrorStatus.WARN) {
        print(sm, threshold);
      }
    }
  }
public static void printInCaseOfErrorsOrWarnings(Context context, long threshold) {
    if (context == null) {
      throw new IllegalArgumentException("Context argument cannot be null");
    }

    StatusManager sm = context.getStatusManager();
    if (sm == null) {
      ps.println("WARN: Context named \"" + context.getName()
          + "\" has no status manager");
    } else {
      StatusUtil statusUtil = new StatusUtil(context);
      if (statusUtil.getHighestLevel(threshold) >= ErrorStatus.WARN) {
        print(sm, threshold);
      }
    }
  }
public static void printInCaseOfErrorsOrWarnings ( Context context , long threshold ) { if ( context == null ) { throw new IllegalArgumentException ( "Context argument cannot be null" ) ; } StatusManager sm = context . getStatusManager ( ) ; if ( sm == null ) { ps . println ( "WARN: Context named \"" + context . getName ( ) + "\" has no status manager" ) ; } else { StatusUtil statusUtil = new StatusUtil ( context ) ; if ( statusUtil . getHighestLevel ( threshold ) >= ErrorStatus . WARN ) { print ( sm , threshold ) ; } } }
Print the contents of the context status, but only if they contain
warnings or errors occurring later then the threshold.

@param context
Print the contents of the context status but only if they contain warnings or errors occurring later then the threshold .