if ((mimeTypes != null) && (mimeTypes.size() > 0))
{
Iterator _it = mimeTypes.iterator();
while (_it.hasNext())
{
JSMimeType _c = (JSMimeType)_it.next();
// create a new Mime Type
try
{
MimeType mimeType = caps.createMimeType(_c.getName());
/** THE KEY_OVERWRITE_EXISTING test is not required for mime types, since they carry no other information than the name
* Used here for consistency, though
*/
if ((this.getSetting(JetspeedSerializer.KEY_OVERWRITE_EXISTING)) || (mimeType.getMimetypeId() == 0))
{
caps.storeMimeType(mimeType);
}
this.mimeMap.put(_c.getName(), mimeType);
}
catch (Exception e)
{
throw new SerializerException(