if (current < 100000000) {
if (current < limit) {
    private static String getUniqueId() {        int current;        synchronized (DiskFileItem.class) {            current = counter++;        }        String id = Integer.toString(current);        // If you manage to get more than 100 million of ids, you'll        // start getting ids longer than 8 characters.        if (current < 100000000) {            id = ("00000000" + id).substring(id.length());        }        return id;    }