SubjectNode rootuser = (SubjectNode) structure.retrieve(slideToken, "/users/root"); structure.create(slideToken, rootuser, path);
SubjectNode file = 	new SubjectNode(); structure.create(slideToken, file, path);
	private void addContents(		byte[] fileData,		String path,		String contenType,		String linkName)		throws SlideException {		try {			beginTransaction();			SubjectNode rootuser =				(SubjectNode) structure.retrieve(slideToken, "/users/root");			structure.create(slideToken, rootuser, path);			content.create(slideToken, path, true);			NodeRevisionDescriptor currentRevisionDescriptor =				new NodeRevisionDescriptor(-1);			currentRevisionDescriptor.setContentType(contenType);			if (linkName == null || linkName.trim().equals("")) {				linkName = path.split("/")[path.split("/").length - 1];			}			currentRevisionDescriptor.setProperty("linkName", linkName);			NodeRevisionContent currentRevisionContent =				new NodeRevisionContent();			currentRevisionContent.setContent(fileData);			content.create(				slideToken,				path,				currentRevisionDescriptor,				currentRevisionContent);			commitTransaction();		} catch (SlideException e) {			try {				abortTransaction();			} catch (IllegalStateException e1) {						} catch (SecurityException e1) {						} catch (SystemException e1) {							}			throw e;		} catch (Exception e) {			try {				abortTransaction();			} catch (IllegalStateException e1) {							} catch (SecurityException e1) {							} catch (SystemException e1) {							}			throw new SlideException("runtime exception");		}	}