}
else if(JMS_AMQP_MESSAGE_ANNOTATIONS.equals(name))
{
try
{
Map<Symbol, Object> annotationMap = new AnnotationDecoder().decode((String) value);
Map messageAnnotations = messageAnnotationMap();
Map tmp = new LinkedHashMap();
for(Symbol key : SYSTEM_MESSAGE_ANNOTATIONS)
{
if(messageAnnotations.containsKey(key))
{
tmp.put(key, messageAnnotations.get(key));
}
}
messageAnnotations.clear();
messageAnnotations.putAll(annotationMap);
messageAnnotations.putAll(tmp);
}
catch (IOException e)
{
throw new IllegalArgumentException(e);
}
}
else if(JMS_AMQP_DELIVERY_ANNOTATIONS.equals(name))
{
try
{
Map<Symbol, Object> annotationMap = new AnnotationDecoder().decode((String) value);
Map deliveryAnnotations = deliveryAnnotationsMap();
deliveryAnnotations.clear();
deliveryAnnotations.putAll(annotationMap);
}
catch (IOException e)