Don't have Telegram yet? Try it now!
https://kodejava.org/how-do-i-create-beans-through-factory-method/
How do I create beans through factory method?