// look for exact matches on the version
Iterator<FXGVersion> iter = versions.iterator();
while (iter.hasNext())
{
FXGVersion version = iter.next();
if (version.equalTo(fxgVersion))
return versionHandlers.get(version);
}
// look for matches based on matching major version
iter = versions.iterator();
while (iter.hasNext())
{
FXGVersion version = iter.next();
if (version.getMajorVersion() == fxgVersion.getMajorVersion())
return versionHandlers.get(version);
}
return null;