BZ-1144988 - Error when sorting proc. definitions by version when version not specified for some process

(cherry picked from commit 7b4763775e8bd418c0f15ca8d6531750dad9ff64)
DynamicClientFactory is now retrieved through FactoryMethod. Makes it easier to extend the WIH and provide different implementations of the DynamicClientFactory.

(cherry picked from commit 37b5f3baf5a5dfd1a9034ac97487aebd7c923fc9)