package com.chaos.databinding.activities;

import android.databinding.DataBindingUtil;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.chaos.databinding.R;
import com.chaos.databinding.models.User;
import com.chaos.databinding.databinding.ActivityMainBinding;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        final ActivityMainBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_main);
        final User user = this.getUser();

        binding.setUser(user);
    }

    private User getUser() {
        return new User("Ash Davies", "Berlin");
    }
}

@@ -346,16 +346,57 @@
 tivity %7B
+%0A    private ActivityMainBinding binding;
 %0A%0A    @O
@@ -517,34 +517,13 @@
     
-final ActivityMainBinding 
+this.
 bind
@@ -602,42 +602,65 @@
     
-final User user = this.get
+this.updateUser();%0A    %7D%0A%0A    private void update
 User()
-;%0A
+ %7B
 %0A   
@@ -684,12 +684,22 @@
 ser(
-u
+this.getU
 ser
+()
 );%0A 

Store binding as local variable