}
@Override
public EntityState entityStateOf( EntityStoreUnitOfWork unitOfWork, EntityReference entityRef )
{
EntityValueResult valueResult = getValue( entityRef );
return new DefaultSQLEntityState( readEntityState( (DefaultEntityStoreUnitOfWork) unitOfWork,
valueResult.getReader() ),
valueResult.getEntityPK(),
valueResult.getEntityOptimisticLock() );
}