Note logic behind resolving
Use correct constant
Switch over to CFURL for query retrieval instead of KSURLComponents