@Override
public String getZookeeperId(final String zookeeperName) throws ZookeeperNameMissingException, ZookeeperNameCollisionException {
List<Map<String, Object>> zookeepers = jdbc.queryForList("select id from zookeepers where name = ?", zookeeperName);
switch (zookeepers.size()) {
case 0:
throw new ZookeeperNameMissingException(zookeeperName);
case 1:
return zookeepers.get(0).get("ID").toString();
default:
throw new ZookeeperNameCollisionException(zookeepers.size(), zookeeperName);
}