Adding optional parameters to creating spring beans