ps.setString(2, replacement.getMimeType());
ps.setString(3, replacement.getSitePattern());
ps.setString(4, replacement.getMatchPattern());
ps.setString(5, replacement.getReplacePattern());
ps.execute();
return new DefaultReplacement(replacement.getMimeType(), replacement.getReplaceType(), db.getLastInsertId(ps,
"createReplacement.lastInsertId"), replacement.getSitePattern(), replacement.getMatchPattern(), replacement
.getReplacePattern());
} finally {
replacementsCache.clear();
ps.releasePreparedStatement();