class SwiftRegionService {

    public Region lookup(final Path file) throws BackgroundException {
        final Path container = containerService.getContainer(file);
        if(Location.unknown.equals(new SwiftLocationFeature.SwiftRegion(container.attributes().getRegion()))) {
            return this.lookup(location.getLocation(container));
        }
        return this.lookup(new SwiftLocationFeature.SwiftRegion(container.attributes().getRegion()));
    }

    public  SwiftRegionService(final SwiftSession session);
    public  SwiftRegionService(final SwiftSession session, final SwiftLocationFeature location);

}