@Override
    public void initialize(String filePath) {
        patternEncoderUtil = new PatternEncoderUtil();
        try {
            setUtil(patternEncoderUtil);
            analyzePattern(new FileReader(filePath));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        try {
            patternEncoderUtil.construct2DMatrix(new FileReader(filePath));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        initializeEncoderComponents();
    }