public synchronized boolean isLocatorCurrentInBatchLayer(Locator loc) {
        LocatorCacheEntry entry = insertedLocators.getIfPresent(loc.toString());
        return entry != null && entry.isBatchCurrent();
    }
public synchronized boolean isLocatorCurrentInBatchLayer ( Locator loc ) { LocatorCacheEntry entry = insertedLocators . getIfPresent ( loc . toString ( ) ) ; return entry != null && entry . isBatchCurrent ( ) ; }
Checks if Locator is recently inserted in the batch layer

@param loc
@return