static GeoGIG loadGeoGIG(String repo) {
Platform platform = new DefaultPlatform();
platform.setWorkingDir(new File(repo));
Context inj = GlobalContextBuilder.builder.build();
GeoGIG geogig = new GeoGIG(inj, platform.pwd());
if (geogig.command(ResolveGeogigDir.class).call().isPresent()) {
geogig.getRepository();
return geogig;
}