Common libraries for OpenQuake Engine and Desktop Tools