// attributes Map<String, Object>
Map<String, Object> attributes = gbeanData.getAttributes();
for (Map.Entry<String, Object> entry : attributes.entrySet()) {
String attributeName = entry.getKey();
EncryptionSetting encryptionSetting = gbeanInfo.getAttribute(attributeName).getEncryptedSetting();
Object attributeValue = encryptionSetting.encrypt(entry.getValue());
if (attributeValue != null) {
writer.startNode("attribute");
writer.addAttribute("name", attributeName);
writer.startNode(mapper.serializedClass(attributeValue.getClass()));