CLOUDIFY-2260 fixed PermGen OutOfMemoryException.