public RemoteConfiguration(
     String deploymentId, InitialContext context, String username, String password) {
   this.deploymentId = deploymentId;
   this.type = Type.JMS;
   setAndCheckUserNameAndPassword(username, password);
   setRemoteInitialContext(context);
 }
 public RemoteConfiguration(
     String deploymentId,
     ConnectionFactory connectionFactory,
     Queue ksessionQueue,
     Queue taskQueue,
     Queue responseQueue,
     String username,
     String password) {
   this(deploymentId, connectionFactory, ksessionQueue, taskQueue, responseQueue);
   setAndCheckUserNameAndPassword(username, password);
 }