[FIXED JENKINS-16831] Use Queue.getApproximateItemsQuickly to avoid locks from UI.
[JENKINS-16831] avoid JDK 1.6 dependency