ArrayList<SecondaryZone> zones = new ArrayList<SecondaryZone>(dbZones.size());
for(DBZone dbZone : dbZones){
try {
DBSecondaryZone secondaryZone = new DBSecondaryZone(dbZone.getZoneID() ,dbZone.getName(), dbZone.getPrimaryDNS(), dbZone.getDclass());
if(dbZone.getRecords() != null){
secondaryZone.setZoneCopy(dbZone.toZone());
secondaryZone.setDownloaded(dbZone.getDownloaded());
}
zones.add(secondaryZone);
} catch (IOException e) {