added functionalities to handle authorities in the layer metadata