private BiMap<Integer, Class<?>> loadTypes(NamedParameterJdbcOperations template) {
String sql = "select oid, typename from type";
SqlRowSet rowSet = template.queryForRowSet(sql, params("", ""));
BiMap<Integer, Class<?>> types = HashBiMap.create();
if (rowSet.first()) {
do {
Number oid = (Number) rowSet.getObject(1);
String typeName = rowSet.getString(2);
Class<?> clazz;
try {