public void deployProcesses(File[] files) {
		if (files != null) {
			for (File f : files) {
				try {
					BufferedReader br = new BufferedReader(new FileReader(f));
					StringBuffer content = new StringBuffer();
					String line = null;
					while ((line = br.readLine()) != null) {
						content.append(line + "\n");

					}
					ProcessDefinition pd = new ProcessDefinition();
					pd.setId(UUID.randomUUID().toString());
					pd.setContent(content.toString());
					ProcessConfig config = new XmlParser(pd.getContent())
							.parse();
					pd.setName(config.getProcessName());
					definitions.put(pd.getId(), pd);
					br.close();
				} catch (Exception e) {
					throw new RuntimeException(e);
				}

			}
		}

	}