Oh! Now I understand the question.
Your code is close. Two changes:
obj1.create(); // name should match diagram
startObject.getAttribute(); // call is on startObject because that's where the arrow starts
Creating object 1 and get attribute both go from the first line. They should be from the same object. Which is the sender at left.
This page demonstrates it wll.