public static void main(String[] args) {
		if (args.length > 2){
			System.err.println("Zu viele Argumente (entweder zwei Argumente oder eines).");
			System.exit(0);
		}else if (args.length == 2){			
			try{
				Application control = new Application();
				control.analyzeXPathExpressions(args[0], args[1]);
			}catch (IOException e) {
				System.err.println(e);
			}catch (JDOMException e) {
				System.err.println(e);
			}catch (SAXException e) {
				System.err.println(e);
			}
		}else if (args.length == 1){
			if (args[0].equals("/?") || args[0].equals("--help")){
				try{
					Application control = new Application();
					control.help();
				}catch (IOException e) {
					System.err.println(e);
				}catch (JDOMException e) {
					System.err.println(e);
				}catch (SAXException e) {
					System.err.println(e);
				}
			}else{
				try{
					Application control = new Application();
					control.setBPELFileName(args[0]);
					control.analyzeBPELProcess();
				}catch (IOException e) {
					System.err.println(e);
				}catch (JDOMException e) {
					System.err.println(e);
				}catch (SAXException e) {
					System.err.println(e);
				}
			}
		}else{
			System.err.println("Zu wenig Argumente.");
			System.exit(0);
		}
	}