person.setAttributes(attributes);
}
protected void copyAttributes(final Map<String, Object> destination, final Map<String, Attribute> source) {
for (final Map.Entry<String, Attribute> sourceEntry : source.entrySet()) {
final Attribute attribute = sourceEntry.getValue();
if (attribute != null && StringUtils.isNotEmpty(attribute.getValue())) {
final String name = sourceEntry.getKey();
destination.put(name, attribute.getValue());
}
}
}