Use groovy to relax type checking since type changed for 1.11