public void reassignVersionNumber() throws WGAPIException {
synchronized (getDatabase()) {
// Find the next free version
FreeContentVersionFinder finder = getDatabase().new FreeContentVersionFinder(getStructEntry(), getLanguage());
int newVersion = finder.findNewVersion();
// Unmap the content under its old keys.
getDatabase().unmapDocumentObject(this);
WGDocumentKey oldDocKey = getDocumentKeyObj();