Set<AddonVertex> result = new HashSet<AddonVertex>();
for (AddonVertex vertex : getGraph().vertexSet())
{
String vertexName = vertex.getName();
// FIXME some weird CLAC javassist issue requiring this unwrapping?
Version vertexVersion = new SingleVersion(vertex.getVersion().toString());
if (vertexName.equals(name)
&& new SingleVersion(version.toString())
.compareTo(new SingleVersion(vertexVersion.toString())) == 0)
{
result.add(vertex);
}
}
return result;