add a flag to callback of findOrCreate to indicate find or create

Signed-off-by: Clark Wang <clark.wangs@gmail.com>