Add MagentoConfiguration and a command to check validity of connection

Instead of these two lines, create a method to get the configuration and directly call it. You can keep the method to get the manager.