Maybe I'm missing something... In which part do you process the reference string and look for the "https" URL schema?