Added handleWith overload that takes a static resolved value.