Hi Jyothi,
what you have done is leaving the job of getting the appropriate (local or remote) object to the user.
This is actually the job of the factory. It returns the appropriate object on the basis of some information. My factory accepted a
String parameter. If it started with "//" or contained "://", the factory decided that a remote connection was needed and requested one from the remote server specified by the String parameter.
Check what your instructions say - which parameters are allowed on the command line?