public boolean ewify() throws IOException, FileNotFoundException{
		
		FileReader input = new FileReader(this.source);
		BufferedReader bufRead = new BufferedReader(input);
		String myLine = null;
		ArrayList<EweRule> arrayRules=new ArrayList<EweRule>();
		int currentRule=0;
		boolean flagThen=false;
		boolean flagWhen=false;
		User user=new User("my user");
		Service service = new Service("Drools");
		user.setService(service);
		while ( (myLine = bufRead.readLine()) != null)
		{    
			if(myLine.startsWith("rule")){
				String title = myLine.split("\"")[1];
				EweRule myRule=new EweRule(title);
				myRule.setUser(user);
				arrayRules.add(myRule);
			}

			if(flagWhen){
				//ewe only supports one event
				flagWhen=false;
				EweRule copyRule=arrayRules.get(currentRule);
				Event myEvent=new Event(myLine);
				copyRule.getUser().getService().setEvent(myEvent);
				arrayRules.set(currentRule, copyRule);
			}
			if(myLine.contains("when")){
				flagWhen=true;
			}
			if(flagThen&&myLine.contains("end")){
				flagThen=false;
				rdfy(arrayRules.get(currentRule));
				currentRule++;
			}
			
			if (flagThen){
				//flagThen=false;
				EweRule copyRule=arrayRules.get(currentRule);
				Action myAction=new Action(myLine);
				copyRule.getUser().getService().setAction(myAction);
				arrayRules.set(currentRule, copyRule);
			}
			if(myLine.contains("then")){
				flagWhen=false;
				flagThen=true;
			}

			
		}
		return true;
	}