/// <summary>
        /// Gets the license metadata of the license.
        /// </summary>
        /// <param name="key">metadata key to retrieve the value</param>
        /// <returns>Returns the value of metadata for the key.</returns>
        public static string GetLicenseMetadata(string key)
        {
            var builder = new StringBuilder(256);
            int status;

            if (LexActivatorNative.IsWindows())
            {
                status = IntPtr.Size == 4 ? LexActivatorNative.GetLicenseMetadata_x86(key, builder, builder.Capacity) : LexActivatorNative.GetLicenseMetadata(key, builder, builder.Capacity);
            }
            else
            {
                status = LexActivatorNative.GetLicenseMetadataA(key, builder, builder.Capacity);
            }
            if (LexStatusCodes.LA_OK == status)
            {
                return(builder.ToString());
            }
            throw new LexActivatorException(status);
        }