}
public void upload(UploadEvent event) throws IOException {
media = event.getMedia();
ParameterCache cache = ParameterCache.getInstance();
String serverRootPath = cache.getOne("docRoot");
String serverFileName = serverRootPath + File.separator + building.getBuildingId()
+ File.separator + media.getName();
Textbox fileNameTextbox = (Textbox) getFellow("fileNameTextbox");
if (!fileNameTextbox.getText().equals(serverFileName)) {