CLOUDSTACK-6859:Management Server PermGen run out of memory after some
time due to class leak.

(cherry picked from commit 961cd7657e7dbb69d497123071db3156bd15d8e9)