long msgSince, boolean initSuccess) {
if (context == null) {
throw new IllegalArgumentException("Context argument cannot be null");
}
PrintStream ps = System.out;
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) {
List<Status> filteredList =
StatusUtil.filterStatusListByTimeThreshold(sm.getCopyOfStatusList(), msgSince);
print(filteredList, initSuccess);
}
}
}