switch(key) {
case "allowTruncate":
if (DefaultGroovyMethods.asBoolean(value))
fetchOptions.allowTruncate();
else
fetchOptions.disallowTruncate();
break;
case "followRedirects":
if (DefaultGroovyMethods.asBoolean(value))
fetchOptions.followRedirects();
else