Changed ContextClassLoader before making calls to the velocity-engine
because there is a check of velocticy which will not succeed without
this modification: Velocity checks if the ResourceManagerImpl is an
instance of a ResourceManager. This was failing when there were other
plugins in eclipse which were also using velocity.