CLOUDIFY-2260 fixed permgen outOfMemoryException.