// move the Publisher into a form we can work with easily
Publisher pub = (Publisher)publisherVector.elementAt(i);
String pubID = pub.getPublisherID();
// if the publisher account arleady exists then delete it.
dataStore.deletePublisher(pubID);
// Everything checks out so let's save it.
dataStore.savePublisher(pub);
}