/** * Returns a new call initialiser for calls executed in the specified state * context {@code stateContext} that use return buffers initialised by the specified * factory {@code returnBufferFactory}. * * @param stateContext the state context, must not be {@code null} * @param returnBufferFactory the return buffer factory, must not be {@code null} * @return a new call initialiser for {@code stateContext} * * @throws NullPointerException if {@code stateContext} or {@code returnBufferFactory} * is {@code null} */ public static RuntimeCallInitialiser forState(StateContext stateContext, ReturnBufferFactory returnBufferFactory) { return new RuntimeCallInitialiser(stateContext, returnBufferFactory); }