[PAMSupport]: adding utility method to parse metadata