class SingleRepositoryServiceImpl implements SingleRepositoryService {

    @Override
    public FileResourceData getFileResourceData(String uri) {
        Resource resource = repositoryService.getResource(null, uri);
        if (resource == null) {
            throw new IllegalStateException("Resource " + uri + " not found");
        }
        return getFileResourceData(resource);
    }

}