public static boolean stream_context_set_params(Env env,
Value resource,
ArrayValue value)
{
if (resource instanceof StreamContextResource) {
StreamContextResource context = (StreamContextResource) resource;
context.setParameters(value);
return true;
}
else {
env.warning(L.l("expected resource at '{0}'", resource));