* if you want to respond differently.
*/
public void fillDetails(Message ack) throws ApplicationException {
try {
// populate MSA and ERR with generic error ...
Segment msa = (Segment) ack.get("MSA");
Terser.set(msa, 1, 0, 1, 1, "AR");
Terser.set(
msa,
3,
0,
1,
1,
"No appropriate destination could be found to which this message could be routed.");
// this is max length
// populate ERR segment if it exists (may not depending on version)
Structure s = ack.get("ERR");
if (s != null) {
Segment err = (Segment) s;
Terser.set(err, 1, 0, 4, 1, "207");
Terser.set(err, 1, 0, 4, 2, "Application Internal Error");
Terser.set(err, 1, 0, 4, 3, "HL70357");
}