myBatis ported initially.