}
private Map<String, Object> enrichAttributesWithAuditInformation(final Map<String, Object> attributes)
{
LinkedHashMap<String,Object> enriched = new LinkedHashMap<>(attributes);
final AuthenticatedPrincipal currentUser = org.apache.qpid.server.security.SecurityManager.getCurrentUser();
if(currentUser != null)
{
enriched.put(ConfiguredObject.LAST_UPDATED_BY, currentUser.getName());
enriched.put(ConfiguredObject.CREATED_BY, currentUser.getName());
}
long currentTime = System.currentTimeMillis();
enriched.put(ConfiguredObject.LAST_UPDATED_TIME, currentTime);
enriched.put(ConfiguredObject.CREATED_TIME, currentTime);