public static Map<String, Object> createBindings(Object parameterObject, Configuration configuration) {
    Map<String, Object> bindings = new HashMap<String, Object>();
    bindings.put(PARAMETER_OBJECT_KEY, parameterObject);
    bindings.put(DATABASE_ID_KEY, configuration.getDatabaseId());
    bindings.put("it", new IteratorParameter(bindings));
    return bindings;
  }
Just a test case. Not a real Velocity implementation.
src/test/java/org/apache/ibatis/submitted/language/VelocitySqlSource.java