selected = applyPolicy(policy, selected, true, false);
return selected;
}
synchronized public IContentType[] getAllContentTypes() {
List<ContentType> result = new ArrayList<>(contentTypes.size());
<BUG>for (Iterator<IContentType> i = contentTypes.values().iterator(); i.hasNext();) {
ContentType type = (ContentType) i.next();
</BUG>
if (type.isValid() && !type.isAlias())
result.add(type);

selected = applyPolicy(policy, selected, true, false);
return selected;
}
synchronized public IContentType[] getAllContentTypes() {
List<ContentType> result = new ArrayList<>(contentTypes.size());
for (IContentType iContentType : contentTypes.values()) {
ContentType type = (ContentType) iContentType;
if (type.isValid() && !type.isAlias())
result.add(type);
