IEnrolment enrolment = criaEnrolment(curricularCourseData,
IEnrollment enrolment = criaEnrolment(curricularCourseData,
    public static void main(String[] args)    {        Hashtable dadosConfiguracao = leFicheiroPropriedades();        String number = args[0];        String file = args[1];        System.out.println(number + "-" + file);        String filePath = (String) dadosConfiguracao.get(CC_FILE_PATH);        String backupDataSetFilePath = (String) dadosConfiguracao                .get(BACKUP_DATASET_PROPERTY);        backupDataSetFilePath = filePath + "/" + number + "/"                + backupDataSetFilePath;        String testFileFullPath = filePath + "/" + number + "/"                + TEST_FILE_PATH;        Integer studentNumber = null;        try        {            ResourceBundle testProperties = new PropertyResourceBundle(                    new FileInputStream(testFileFullPath));            studentNumber = new Integer(testProperties                    .getString(STUDENT_NUMBER_PROPERTY));            dadosConfiguracao.put(STUDENT_NUMBER_PROPERTY, studentNumber);        }        catch (FileNotFoundException e1)        {        }        catch (IOException e1)        {        }        filePath = filePath + "/" + number + "/" + file + ".txt";        Integer degreeCurricularPlanID = new Integer((String) dadosConfiguracao                .get(DCP_ID_PROPERTY));        ArrayList enrolments = new ArrayList();        backUpEnrolmentContents(studentNumber, backupDataSetFilePath);        apagaStudentCurricularPlanEnrolments(studentNumber);        System.out.println(filePath);        List curricularCourses = leFicheiro(filePath);        Iterator iter = curricularCourses.iterator();        while (iter.hasNext())        {            String curricularCourseData[] = (String[]) iter.next();            System.out.println("A Lista tem: " + curricularCourseData[0]);            IEnrolment enrolment = criaEnrolment(curricularCourseData,                    studentNumber, degreeCurricularPlanID);            enrolments.add(enrolment);        }        writeEnrollmentPeriod();        try        {            String newFilePath = filePath.replaceFirst(".txt", ".xml");            SmartDataSetGeneratorForLEECTestBattery dataSetGen = new SmartDataSetGeneratorForLEECTestBattery(                    DATASET_CONFIG, newFilePath, studentNumber.toString());            dataSetGen.writeDataSet();        }        catch (NullPointerException e)        {            e.printStackTrace();        }        catch (FileNotFoundException e)        {            e.printStackTrace();        }        catch (IOException e)        {            e.printStackTrace();        }        catch (SQLException e)        {            e.printStackTrace();        }        catch (Exception e)        {            e.printStackTrace();        }        System.out.println("Ja gerei o DataSet");        apagaEnrolments(enrolments);        deleteEnrollmentPeriod();        System.out.println("Ja criei os enrolments");        loadEnrolments(backupDataSetFilePath);        System.out.println("Ja repus a BD");    }