if (value.equals("am")) {
ampm[0] = id;
} else if (value.equals("pm")) {
ampm[1] = id;
} else {
throw new ProtocolException(
"unknown value for AM/PM marker: " + value);
}
} else if (type.equals("separator")) {
try {
Integer.parseInt(value);
} catch (NumberFormatException nfe) {
throw new ProtocolException(
"unknown value for AM/PM marker: " + value);
}
separators.put(value, id);
} else {
throw new ProtocolException("unknown type: " + type);
}
}