private ContentType[] getChildren(ContentType parent) {
ContentType[] children = allChildren.get(parent);
if (children != null)
return children;
List<ContentType> result = new ArrayList<>(5);
<BUG>for (Iterator<IContentType> i = this.contentTypes.values().iterator(); i.hasNext();) {
ContentType next = (ContentType) i.next();
</BUG>
if (next.getBaseType() == parent)
result.add(next);

private ContentType[] getChildren(ContentType parent) {
ContentType[] children = allChildren.get(parent);
if (children != null)
return children;
List<ContentType> result = new ArrayList<>(5);
for (IContentType iContentType : this.contentTypes.values()) {
ContentType next = (ContentType) iContentType;
if (next.getBaseType() == parent)
result.add(next);
