task 4: Generate fail safe judgment methods 

https://github.com/LorenzoBettini/xsemantics/issues/issue/4

Change-Id: I3263adb9d36375576f33c81574476f80c4e2e6b2