Enclosed method calls and data insertion code in if-else block.