/** * Indicate that this phase is in use. Increments the reference count. * * @return A {@link Token} to represent the phase use. */ public synchronized Token use() { Token token = getToken(); if (token == null) { token = new Token(); tokenRef = new WeakReference(token); } ++refCount; return token; }