164165166167168169170171172173
} catch (FieldNotFound ex) { return message.getHeader().getField((UtcTimeStampField) field); } } throw new FieldNotFound(field.getClass().getName()); } catch (FieldNotFound ex) { throw new HermesRuntimeException(ex); } }
231232233234235236237238239240241
} if (getAllFields().containsKey(field)) { return getAllFields().get(field).getObject().toString(); } else { throw new FieldNotFound("No such field " + field); } } catch (FieldNotFound e) { throw new HermesRuntimeException(e); } }