Is there a good way to bind the java field with the instance variable?