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); // convert to the bucket region
      if (event.isOriginRemote()) {
        result = bucketRegion.basicUpdate(event, ifNew, ifOld, lastModified, true);
      } else {
        // Skip validating again
        result = bucketRegion.virtualPut(event, ifNew, ifOld, null, // expectedOldValue
            requireOldValue, lastModified, false);
      }
      // if (shouldThrowExists && !posDup) {
      // throw new EntryExistsException(event.getKey().toString());
      // }
      // bug 34361: don't send a reply if bucket was destroyed during the op
      bucketRegion.checkReadiness();
    } catch (RegionDestroyedException rde) {
      checkRegionDestroyedOnBucket(bucketRegion, event.isOriginRemote(), rde);
    }


    return result;

    // this is now done elsewhere
    // event.setRegion(this.partitionedRegion);
    // this.partitionedRegion.notifyBridgeClients(EnumListenerEvent.AFTER_CREATE,
    // event);
    // this.partitionedRegion.notifyGatewayHub(EnumListenerEvent.AFTER_CREATE,
    // event);
  }
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>

@param bucketRegion the bucket to do the create in
@param event the particulars of the operation
@param ifNew whether a new entry can be created
@param ifOld whether an existing entry can be updated
@param lastModified timestamp
@throws ForceReattemptException if bucket region is null
@throws EntryExistsException if an entry with this key already exists
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionDataStore.java