Updates for MyBatis bug: http://code.google.com/p/mybatis/issues/detail?id=592