Object obj = flightSection.get(flightName, null);
if (obj == null) {
return null;
}
if (obj instanceof ConfigurationSection) {
<BUG>Flight f = new Flight(flightName, ((ConfigurationSection) obj).getValues(true));
f.setName(flightName);</BUG>
saveFlight(f);
return f;
} else {

Object obj = flightSection.get(flightName, null);
if (obj == null) {
return null;
}
if (obj instanceof ConfigurationSection) {
Flight f = new Flight(((ConfigurationSection) obj).getValues(true));
f.setName(flightName);
saveFlight(f);
return f;
} else {
