Source:
<code>public static ADBInfo loadADBInfo(IServer server) { String[] args = new String[]{CDKConstants.VAGRANT_CMD_SERVICE_MANAGER, CDKConstants.VAGRANT_CMD_SERVICE_MANAGER_ARG_ENV}; CDKServer cdkServer = (CDKServer)server.loadAdapter(CDKServer.class, new NullProgressMonitor()); <START> HashMap<String,String> env = CDKLaunchEnvironmentUtil.createEnvironment(server, cdkServer.getPassword()); <END> String vagrantcmdloc = CDKConstantUtility.getVagrantLocation(server); HashMap<String,String> adbEnv = new HashMap<String,String>(); try { String[] lines = VagrantLaunchUtility.call(vagrantcmdloc, args, CDKServerUtility.getWorkingDirectory(server), env); String setEnvVarCommand = Platform.getOS().equals(Platform.OS_WIN32) ? "setx " : "export "; String setEnvVarDelim = Platform.getOS().equals(Platform.OS_WIN32) ? " " : "="; for(String oneAppend : lines) { String[] allAppends = oneAppend.split("\n"); for( int i = 0; i < allAppends.length; i++ ) { if( allAppends[i].trim().startsWith(setEnvVarCommand)) { String lineRemainder = allAppends[i].trim().substring(setEnvVarCommand.length()); int eq = lineRemainder.indexOf(setEnvVarDelim); if( eq != -1 ) { String k = lineRemainder.substring(0, eq); String v = lineRemainder.substring(eq+1); adbEnv.put(k, v); } } } } return new ADBInfo(adbEnv); } catch( URISyntaxException urise) { CDKCoreActivator.pluginLog().logError("Environment variable DOCKER_HOST is not a valid uri: " + env.get("DOCKER_HOST"), urise); } catch(IOException | TimeoutException ce) { CDKCoreActivator.pluginLog().logError("Unable to successfully complete a call to vagrant adbinfo. ", ce); } return null; }</code><technical_language>Map<String, String></technical_language>

Target:
public static ADBInfo loadADBInfo(IServer server) { String[] args = new String[]{CDKConstants.VAGRANT_CMD_SERVICE_MANAGER, CDKConstants.VAGRANT_CMD_SERVICE_MANAGER_ARG_ENV}; CDKServer cdkServer = (CDKServer)server.loadAdapter(CDKServer.class, new NullProgressMonitor()); Map<String,String> env = CDKLaunchEnvironmentUtil.createEnvironment(server, cdkServer.getPassword()); String vagrantcmdloc = CDKConstantUtility.getVagrantLocation(server); HashMap<String,String> adbEnv = new HashMap<String,String>(); try { String[] lines = VagrantLaunchUtility.call(vagrantcmdloc, args, CDKServerUtility.getWorkingDirectory(server), env); String setEnvVarCommand = Platform.getOS().equals(Platform.OS_WIN32) ? "setx " : "export "; String setEnvVarDelim = Platform.getOS().equals(Platform.OS_WIN32) ? " " : "="; for(String oneAppend : lines) { String[] allAppends = oneAppend.split("\n"); for( int i = 0; i < allAppends.length; i++ ) { if( allAppends[i].trim().startsWith(setEnvVarCommand)) { String lineRemainder = allAppends[i].trim().substring(setEnvVarCommand.length()); int eq = lineRemainder.indexOf(setEnvVarDelim); if( eq != -1 ) { String k = lineRemainder.substring(0, eq); String v = lineRemainder.substring(eq+1); adbEnv.put(k, v); } } } } return new ADBInfo(adbEnv); } catch( URISyntaxException urise) { CDKCoreActivator.pluginLog().logError("Environment variable DOCKER_HOST is not a valid uri: " + env.get("DOCKER_HOST"), urise); } catch(IOException | TimeoutException ce) { CDKCoreActivator.pluginLog().logError("Unable to successfully complete a call to vagrant adbinfo. ", ce); } return null; }