Suggest you rewrite this to hold the ITitleable in a local variable, and call setTitle once.  This will simplify the code.