Added code to load arguments for server, username and password when creating a client factory class