As a side note, the synchronized block on that class may be sub-optimal for efficiency as it should be synchronized on the queue, rather than being synchronized on a static reference to the utility class (which doesn't make much sense.