class TimeStampBasedIdGenerator {

    public synchronized String nextIdentifier() {
        String currentSimpleDate = getCurrentDateFormattedForFiles();
        checkPreviousDate(currentSimpleDate);
        return currentSimpleDate + "." + fourDigitString();
    }

}