public class UsernamesController implements IUsernamesController {
private static final int USERNAME_MAX_LENGTH = 21;
private static final int NORMAL_ATTEMPTS = 30;
private static final int RANDOM_ATTEMPTS = 20;
private static final int MAX_RANDOM_TRAILLING_NUMBER = 1000;
<BUG>private ZApplication application = null;
</BUG>
private Random randomGenerator;
private Set<UsernamesControllerObserver> usernamesControllerObservers = Collections.newSetFromMap(
new WeakHashMap<UsernamesControllerObserver, Boolean>());

public class UsernamesController implements IUsernamesController {
private static final int USERNAME_MAX_LENGTH = 21;
private static final int NORMAL_ATTEMPTS = 30;
private static final int RANDOM_ATTEMPTS = 20;
private static final int MAX_RANDOM_TRAILLING_NUMBER = 1000;
private WireApplication application = null;
private Random randomGenerator;
private Set<UsernamesControllerObserver> usernamesControllerObservers = Collections.newSetFromMap(
new WeakHashMap<UsernamesControllerObserver, Boolean>());
