@Override public void serializeAttributeGroup( final ArrayBuilder<?> builder, final DictionarySimpleElement elementEntry) throws CBORSerializationException { try { // Serialize 'session-id' { DataItem cborName = this.getAttributeNameMapping(SessionAttributeGroup.SESSION_ID, elementEntry); builder.add(cborName); builder.add(new UnicodeString(this.sessionId)); } } catch (Exception ex) { throw new CBORSerializationException( "Error during serialization, see nested exception for details", ex); } }