Fix bug CLOUDSTACK-1171 due to spring injection.