@@ -0,0 +1,2486 @@
+package com.dstsystems.hackathon.autotempo.main;%0A%0Aimport com.dstsystems.hackathon.autotempo.models.*;%0Aimport com.dstsystems.hackathon.autotempo.service.AppointmentServiceImpl;%0Aimport com.dstsystems.hackathon.autotempo.service.FirstMatchRuleSetProcessor;%0Aimport com.dstsystems.hackathon.autotempo.service.UserProfileService;%0A%0Aimport java.text.ParseException;%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.Arrays;%0Aimport java.util.Date;%0Aimport java.util.List;%0A%0A/**%0A * Created by user on 06/11/2015.%0A */%0Apublic class Main %7B%0A%0A    private static Date generateDateFromString( String dateInString ) %7B%0A        SimpleDateFormat sdf = new SimpleDateFormat(%22MM/dd/yyyy%22);%0A        Date date = new Date();%0A        try %7B%0A            date = sdf.parse(dateInString);%0A        %7D catch (ParseException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        return date;%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        AppointmentServiceImpl appointmentService = new AppointmentServiceImpl();%0A        UserProfileService userProfileService = new UserProfileService();%0A%0A        // To get appointments.%0A        ExchangeUserProfileModel xchangeUserProfile = userProfileService.getExChangeUserProfile(%22src/test/resources/user.profile%22);%0A        Date startDate = generateDateFromString( %2211/07/2015%22 );%0A        Date endDate = generateDateFromString( %2211/07/2015%22 );%0A        try %7B%0A            List%3CAppointmentModel%3E appointmetList = appointmentService.downloadExchangeAppointments(xchangeUserProfile, startDate, endDate);%0A            SimpleCategoryMappingRule rule = new SimpleCategoryMappingRule();%0A            rule.setComment(%22Test comment%22);%0A            rule.setIssueKey(%22INT-1%22);%0A            rule.setAccountKey(%22ATT02%22);%0A            rule.setCategory(%22INTERNAL%22);%0A%0A            RuleSet ruleSet = new RuleSet();%0A            ruleSet.setRuleList(Arrays.asList((Rule) rule));%0A%0A            for (int i = 0; i %3C appointmetList.size(); i++ )%0A            %7B%0A                AppointmentModel appointmentModel = appointmetList.get(i);%0A%0A                WorklogModel worklogModel = new WorklogModel();%0A                new FirstMatchRuleSetProcessor().process(worklogModel, appointmentModel, ruleSet);%0A%0A                System.out.println( worklogModel.getAccountKey() );%0A%0A                System.out.println( worklogModel.getComment() );%0A%0A                System.out.println( worklogModel.getIssueKey() );%0A%0A%0A            %7D%0A        %7D catch (Exception e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A    %7D%0A%0A%0A%7D%0A

Add Main class.