code: private void updateRepoInstances() {
  		RepoInstances repoInstances = application.getRepoInstances();
  		
  		RvRepoInstance rvRepoInstance = repoInstances.getRvRepoInstance();
  		rvRepoInstance.setDiscoveryTimout(BigInteger.valueOf(repoRvDiscoveryTimeout));
  		rvRepoInstance.setTimeout(BigInteger.valueOf(repoRvTimeout));
  		rvRepoInstance.setDaemon(repoRvDaemon);
  		rvRepoInstance.setService(repoRvService);
  		rvRepoInstance.setNetwork(repoRvNetwork);
  		rvRepoInstance.setRegionalSubject(repoRvRegionalSubject);
  		rvRepoInstance.setOperationRetry(BigInteger.valueOf(repoRvOperationRetry));
  		rvRepoInstance.setExtraPropertyFile(repoRvExtraPropertyFile);
  		rvRepoInstance.setServer(repoRvServer);
  		rvRepoInstance.setUser(repoRvUser);
  		rvRepoInstance.setPassword(repoRvPassword);
  		
  		HttpRepoInstance httpRepoInstance = repoInstances.getHttpRepoInstance();
  		httpRepoInstance.setTimeout(BigInteger.valueOf(repoHttpTimeout));
  		httpRepoInstance.setUrl(repoHttpUrl);
  		httpRepoInstance.setServer(repoHttpServer);
  		httpRepoInstance.setUser(repoHttpUser);
  		httpRepoInstance.setPassword(repoHttpPassword);
  		httpRepoInstance.setExtraPropertyFile(repoHttpExtraPropertyFile);
  		
  		LocalRepoInstance localRepoInstance = repoInstances.getLocalRepoInstance();
  		EncodingType encoding;
  		try {
  			encoding = EncodingType.valueOf(repoLocalEncoding);
  		} catch (IllegalArgumentException e) {
  			encoding = EncodingType.UTF_8;
  		}
  		localRepoInstance.setEncoding(encoding);
  
  		repoInstances.setRvRepoInstance(rvRepoInstance);
  		repoInstances.setHttpRepoInstance(httpRepoInstance);
  		repoInstances.setLocalRepoInstance(localRepoInstance);
  		
  		RepoType repoType;
  		try {
  			repoType = RepoType.valueOf(repoSelectInstance.toUpperCase());
  		} catch (IllegalArgumentException e) {
  			repoType = RepoType.LOCAL;
  		}
  		repoInstances.setSelected(repoType);
  	}
docs: This will update the &lt;repoInstances> element.