Change some spring beans according the task