Rename getInstanceByPredicate to getInstanceByCallback