if (clazz == null) {
return matches;
}
for (Iterator a = attributes.iterator(); a.hasNext();) {
Node att = (Node) a.next();
if (att.getValue() == null) {
continue;
}
if (clazz.isAssignableFrom(att.getValue().getClass())) {
matches.add(att.getValue());
}
}
return matches;
}