attributes = new HashMap<String, Object>(attributes);
String name = MapValueConverter.getStringAttribute(Exchange.NAME, attributes, null);
State state = MapValueConverter.getEnumAttribute(State.class, Exchange.STATE, attributes, State.ACTIVE);
boolean durable = MapValueConverter.getBooleanAttribute(Exchange.DURABLE, attributes, false);
LifetimePolicy lifetime = MapValueConverter.getEnumAttribute(LifetimePolicy.class, Exchange.LIFETIME_POLICY, attributes, LifetimePolicy.PERMANENT);
String type = MapValueConverter.getStringAttribute(Exchange.TYPE, attributes, null);
long ttl = MapValueConverter.getLongAttribute(Exchange.TIME_TO_LIVE, attributes, 0l);
attributes.remove(Exchange.NAME);
attributes.remove(Exchange.STATE);