public void addMimeMapping(MimeMapping mimeMapping) {
// always override
// Since Set.add API doesn't replace
// remove the element first if it's already contained
for (Iterator itr = getMimeMappingsSet().iterator(); itr.hasNext();) {
MimeMapping mm = (MimeMapping) itr.next();
if (mm.getExtension().equals(mimeMapping.getExtension())) {
getMimeMappingsSet().remove(mm);
break;
}
}
this.getMimeMappingsSet().add(mimeMapping);