title: How do I model an object thats returned from a function call in a sequence diagram?
body: <p>Suppose I have code like</p>
  
  <pre><code>user = AuthHandler.getLoggedInUser()
  user.setName(name)
  UserDAO.update(user)
  </code></pre>
  
  <p>How will the sequence diagram look like?</p>
  
  <p>I did </p>
  
  <p><img src="https://i.imgur.com/Zqm1E.png" alt=""></p>
  
  <p>Is it correct? the user/userDAO part?</p>