// removing both old and new parent
CacheLocator.getNavToolCache().removeNavByPath(ident.getHostId(), ident.getParentPath());
CacheLocator.getNavToolCache().removeNav(folder.getHostId(), folder.getInode());
HTMLPage tempPage = new HTMLPage();
tempPage.copy(page);
// sets filename for this new file
String newNamePage = newName + "." + Config.getStringProperty("VELOCITY_PAGE_EXTENSION");
tempPage.setPageUrl(newNamePage);