String decName = getString(choice, "name");
Decoder dec = null;
if (decName.equals("s")) {
dec = new StringDecoder();
} else if (decName.equals("b")) {
dec = new BinaryDecoder();
} else if (decName.equals("d")) {
dec = new DateDecoder();
} else if (decName.equals("nl")) {
dec = new NumLongDecoder();
} else if (decName.equals("ni")) {