class ContextsStorageSecurityAspect {

    protected String getCurrentUserQualifiedName(){
        final User user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
        final String tenantId = user.getTenantId();
        return user.getUsername() + (tenantId != null ? "|" + tenantId : "");
    }

}