uploadBar.addTitleText(getCurrentResourcePath());
uploadBar.addTitleText(getCurrentResourceVirtualPath());
	public void initializeContent() {			Boolean useUserHomeFolder = (Boolean) this.getAttributes().get("useUserHomeFolder");		if (useUserHomeFolder != null && useUserHomeFolder.booleanValue()) {			try {				rootFolder = super.getIWSlideSession().getUserHomeFolder();			}			catch (RemoteException e) {				e.printStackTrace();			}		}				String startFolder = (String) this.getAttributes().get("startFolder");		if (rootFolder == null) {			rootFolder = (String) this.getAttributes().get("rootFolder");		}				String iconTheme = (String) this.getAttributes().get("iconTheme");//		rootFolder ="/files/shared";		WFBlock listBlock = new WFBlock();		WFTitlebar tb = new WFTitlebar();		tb.addTitleText(getBundle().getLocalizedText("document_list"));		tb.addTitleText(" (");		tb.addTitleText(getCurrentResourcePath());//		tb.addTitleText("WebDAVListBean.virtualWebDAVPath", true);//		tb.addTitleText("WebDAVListBean.webDAVPath", true);		tb.addTitleText(")");		listBlock.setToolbarEmbeddedInTitlebar(true);		listBlock.setTitlebar(tb);		listBlock.setToolbar(getToolbar());		WebDAVList list = new WebDAVList();		list.setId(getId()+"_list");		list.setRendered(renderWebDAVList);		list.setStartFolder(startFolder);		list.setRootFolder(rootFolder);		list.setIconTheme(iconTheme);		listBlock.add(list);				WFBlock detailsBlock = new WFBlock();		WFTitlebar detailsBar = new WFTitlebar();		detailsBar.addTitleText(getBundle().getLocalizedText("document_details"));		detailsBar.addTitleText(" (");		detailsBar.addTitleText(getCurrentResourcePath());		detailsBar.addTitleText(")");		detailsBlock.setTitlebar(detailsBar);		detailsBlock.setToolbar(getToolbar());		WebDAVFileDetails details = new WebDAVFileDetails();		details.setRendered(renderWebDAVFileDetails);		details.setId(getId()+"_details");		detailsBlock.add(details);				WFBlock previewBlock = new WFBlock();		WFTitlebar previewBar = new WFTitlebar();		previewBar.addTitleText(getBundle().getLocalizedText("document_details"));		previewBar.addTitleText(" (");		previewBar.addTitleText(getCurrentResourcePath());		previewBar.addTitleText(")");		previewBlock.setTitlebar(previewBar);		previewBlock.setToolbar(getToolbar());		WebDAVFileDetails details2 = new WebDAVFileDetails();		details2.setRendered(renderWebDAVFilePreview);		details2.setId(getId()+"_details");		details2.setDetailed(false);		WebDAVFilePreview preview = new WebDAVFilePreview();		preview.setRendered(renderWebDAVFilePreview);		preview.setId(getId()+"_preview");		previewBlock.add(details2);				WFBlock folderBlock = new WFBlock();		WFTitlebar folderBar = new WFTitlebar();		folderBar.addTitleText(getBundle().getLocalizedText("create_a_folder"));		folderBar.addTitleText(" (");		folderBar.addTitleText(getCurrentResourcePath());		folderBar.addTitleText(")");		folderBlock.setTitlebar(folderBar);		folderBlock.setToolbar(new WFToolbar());		WebDAVFolderCreation folder = new WebDAVFolderCreation();		folder.setRendered(renderWebDAVNewFolder);		folder.setId(getId()+"_folder");		folderBlock.add(folder);				WFBlock uploadBlock = new WFBlock();		WFTitlebar uploadBar = new WFTitlebar();		uploadBar.addTitleText(getBundle().getLocalizedText("upload"));		uploadBar.addTitleText(" (");		uploadBar.addTitleText(getCurrentResourcePath());		uploadBar.addTitleText(")");		uploadBlock.setTitlebar(uploadBar);		uploadBlock.setToolbar(new WFToolbar());		WebDAVUpload upload = new WebDAVUpload();//		upload.setRendered(renderWebDAVUpload);		upload.setId(getId()+"_upload");		uploadBlock.add(upload);				WFBlock deleteBlock = new WFBlock();		WFTitlebar deleteBar = new WFTitlebar();		deleteBar.addTitleText(getBundle().getLocalizedText("delete"));		deleteBar.addTitleText(" (");		deleteBar.addTitleText(getCurrentResourcePath());		deleteBar.addTitleText(")");		deleteBlock.setTitlebar(deleteBar);		deleteBlock.setToolbar(new WFToolbar());				WebDAVDocumentDeleter deleter = new WebDAVDocumentDeleter();		deleter.setRendered(renderWebDAVDeleter);		deleter.setId(getId()+"_deleter");		deleteBlock.add(deleter);//		getFacets().put(BAR, bar);//		getChildren().add(bar);//		super.setToolbar(bar);				WFBlock permissionsBlock = new WFBlock();		WFTitlebar permissionsBar = new WFTitlebar();		permissionsBar.addTitleText(getBundle().getLocalizedText("permissions"));		permissionsBar.addTitleText(" (");		permissionsBar.addTitleText(getCurrentResourcePath());		permissionsBar.addTitleText(")");		permissionsBlock.setTitlebar(permissionsBar);		permissionsBlock.setToolbar(getToolbar());		WebDAVFilePermissions permissions = new WebDAVFilePermissions();		permissions.setRendered(renderWebDAVFilePermissions);		permissions.setId(getId()+"_permissions");		permissionsBlock.add(permissions);				getFacets().put(LIST, listBlock);		getFacets().put(FILE_DETAILS, detailsBlock);		getFacets().put(FILE_DETAILS_LESS, previewBlock);		getFacets().put(PREVIEW, preview);		getFacets().put(PERMISSIONS, permissionsBlock);		getFacets().put(NEW_FOLDER, folderBlock);		getFacets().put(UPLOAD, uploadBlock);		getFacets().put(DELETE, deleteBlock);		//		getChildren().add(list);//		getChildren().add(details);//		System.out.println("tmp Eiki");	}