class BranchLoader {

    boolean saveBranch(Branch branch) {
        // Make branch Dir
        File branchDir = loadBranchDirectory(branch.getBranchId());
        if (!branchDir.exists()) { // IF not exist
            branchDir.mkdir();
            File branchFile = new File(branchDir, BRANCH_FILE);
            try (FileOutputStream outputStream = new FileOutputStream(branchFile)) {
                // Copy Branch File
                byte[] branchJson = branch.getJson().toString().getBytes();
                outputStream.write(branchJson);
                return true;
            } catch (IOException e) {
                log.error(e.getMessage());
            }
        }
        return false;
    }

    public  BranchLoader(String branchPath);

}