private Boolean uploadFileIntern(File file, String graphURI){
		if(!file.exists()){
			try{
				throw new FileNotFoundException();
			}
			catch(FileNotFoundException e){
				LogHandler.writeStackTrace(log, e, Level.SEVERE);
				return false;
			}
		}
		String absFile = file.getAbsolutePath();
		String contentType = RDFLanguages.guessContentType(absFile).getContentType();
		
		if(!this.autoCommit){
			Model input = ModelFactory.createModelForGraph(transactionInput);
			Model add = ModelFactory.createDefaultModel();
			try {
				add.read(new FileInputStream(file), null, FileExtensionToRDFContentTypeMapper.guessFileFormat(contentType));
				switch(this.mut){
				case add:
					input.add(add);
					break;
				case union:
					input.union(add);
					break;
				default:
					input.add(add);
				}
				this.transactionInput = input.getGraph();
			} catch (FileNotFoundException e) {
				LogHandler.writeStackTrace(log, e, Level.SEVERE);
				return false;
			}
			return null;
		}
		//Is there a difference?? 
		String mimeType = contentType;
		String urlEncoded;
		try {
			urlEncoded = URLEncoder.encode(graphURI, "UTF-8");
		} catch (UnsupportedEncodingException e) {
			urlEncoded=graphURI;
		}
		String command=this.curlCommand.replace("$GRAPH-URI", urlEncoded)
				.replace("$FILE", absFile)
				.replace("$CONTENT-TYPE", contentType)
				.replace("$MIME-TYPE", mimeType)
				.replace("$CURL-URL", this.curlURL);
		if(this.type.equals(UploadType.POST)){
			command = command.replace("$UPLOAD-TYPE", "-X POST");
		}
		else if(this.type.equals(UploadType.PUT)){
			command = command.replace("$UPLOAD-TYPE", " ");
		}
		return this.process(command);
	}