class LayerActivationHandler implements LayerActivationListener {

    @Override
    public void layerActivated(GeoPackageDataTypeInfo layer)
    {
        String packageFile = layer.getLayer().getPackageFile();
        GeoPackage geoPackage = GeoPackageManager.open(new File(packageFile));
        GeoPackageImageEnvoy envoy = new GeoPackageImageEnvoy(myToolbox, geoPackage);

        myEnvoyRegistry.addObjectsForSource(packageFile, New.list(envoy));
        myTileActivationListener.layerActivated(layer);
    }

    public  LayerActivationHandler(Toolbox toolbox, LayerActivationListener tileActivationListener);

}