public RemoteConfiguration(
     String deploymentId, InitialContext context, String username, String password) {
   this.deploymentId = deploymentId;
   this.type = Type.JMS;
   setAndCheckUserNameAndPassword(username, password);
   setRemoteInitialContext(context);
 }