public void upload(UploadedFile uploadedFile, String fileName) throws IOException, NotCreatedDirException {
		InputStream inputStream = null;
		OutputStream outputStream = null;

		try {
			// save file on disk
			inputStream = uploadedFile.getInputStream();
			File newFile = new File(path + "poms/" + fileName + ".xml");
			if (!newFile.exists()) {
				newFile.createNewFile();
			}
			outputStream = new FileOutputStream(newFile);
			int read;
			byte[] bytes = new byte[1024];

			while ((read = inputStream.read(bytes)) != -1) {
				outputStream.write(bytes, 0, read);
			}
		} finally {

			if (inputStream != null) {
				inputStream.close();
			}
			if (outputStream != null) {
				outputStream.close();
			}
		}
	}