implemented -handleFunctionInstanceRequest