Fix for GRECLIPSE-1587

Avoid NPE when there is no method binding available
Avoid error when not compiling with 2.1 compiler.