question: public boolean createLocally ( final BucketRegion bucketRegion , final EntryEventImpl event , boolean ifNew , boolean ifOld , boolean requireOldValue , final long lastModified ) throws ForceReattemptException { boolean result = false ; try { event . setRegion ( bucketRegion ) ; if ( event . isOriginRemote ( ) ) { result = bucketRegion . basicUpdate ( event , ifNew , ifOld , lastModified , true ) ; } else { result = bucketRegion . virtualPut ( event , ifNew , ifOld , null , requireOldValue , lastModified , false ) ; } bucketRegion . checkReadiness ( ) ; } catch ( RegionDestroyedException rde ) { checkRegionDestroyedOnBucket ( bucketRegion , event . isOriginRemote ( ) , rde ) ; } return result ; }
target:  Creates the entry with the given key locally. <br> Steps: <br> 1) It finds out the bucket region for the bucket id. <br> 2) If from step 1 it gets null, that means the bucket is remapped. <br> 3) If it finds the bucket region from step 1, it tries to creates the entry on the region. <br> 4) If entry already exists, for the key, step 3 would throw EntryExistsException or else it will create an entry <br> 5) updateBucket2Size if bucket is on more than 1 node or else bucket listners would take care of size update. <br>