// adding directly to the delegate. No need to order because insertion
// will be ordered as in this PriorityCollection
for (T t : delegate) {
// if the instance has MIME types associated
if (t instanceof MIMETypeAware) {
MIMETypeAware mimeTypeAware = (MIMETypeAware) t;
if (mimeType.equals(mimeTypeAware.getDefaultMIMEType())) {
pc.add(t);
} else {
if (mimeTypeAware.getMIMETypes().contains(mimeType)) {
pc.add(t);
}
}
}
}