Key key = Key.createKey(majorComponents);
Iterator<KeyValueVersion> iterator = kvStore.storeIterator(Direction.UNORDERED, 0, key, null, null);
while (iterator.hasNext())
{
KeyValueVersion keyValueVersion = iterator.next();
Key keytoDelete = keyValueVersion.getKey();
byte[] value = keyValueVersion.getValue().getValue();
Object valueObject = PropertyAccessorHelper.getObject(
((AbstractAttribute) entityMetadata.getIdAttribute()).getBindableJavaType(), value);
if (valueObject.equals(id))
{