private FormDataMultiPart createInstance(String filePath) {
		File f = new File(filePath);

		if (f.isFile()) {
			FileDataBodyPart fdp = new FileDataBodyPart("file", f,
					MediaType.APPLICATION_OCTET_STREAM_TYPE);
			
			FormDataMultiPart formDataMultiPart = new FormDataMultiPart();
			
			formDataMultiPart.bodyPart(fdp);
			return formDataMultiPart;
		} else {
			JOptionPane.showMessageDialog(null, "Nie można znaleźć pliku do wysłania");
			throw new NoDataInFieldException();
		}
	}