private Map<String, Distro> getAllCobblerDistros() {
Map<String, Distro> distros = new HashMap<String, Distro>();
CobblerConnection conn = getConnection();
Finder finder = Finder.getInstance();
List<? extends CobblerObject> objs = finder.listItems(conn, ObjectType.DISTRO);
for (CobblerObject obj : objs) {
if (obj instanceof Distro) {
distros.put(((Distro) obj).getName(), (Distro) obj);
} else {
log.error("Instead of a distro, Cobbler returned an object of type [" + obj.getClass() + "]: " + obj);