Tested: added test to ensure correct behavior of createKeySql()
Tested: more test to ensure behavior. Static calls prevented this method from being fully tested.
Tested: more test to ensure behavior. Static calls prevented this method from being fully tested.
Tested: more test to ensure behavior. Static calls prevented this method from being fully tested.