class VersionRecordServiceImpl implements VersionRecordService {

    @Override
    public VersionRecord loadRecord(Path path) throws URISyntaxException {

        for (VersionRecord record : loadVersionRecords(util.getPath(path,
                                                                    "master"))) {
            String version = util.getVersion(path);
            if ("master".equals(version)) {
                // Return first record when looking for master
                return record;
            } else if (record.id().equals(version)) {
                return record;
            }
        }

        return null;
    }

    public  VersionRecordServiceImpl();
    @Inject public  VersionRecordServiceImpl(@Named("ioStrategy") IOService ioService,
                                    VersionUtil util);

}