String id = vmDescriptor.id();
String displayName = vmDescriptor.displayName();
boolean agentLoaded = vmArgs.contains(AGENT_NAME);
String userDir = getUserDir(vm);
return Stream.of(new VirtualMachine(id, displayName, agentLoaded, userDir));
} catch (AttachNotSupportedException e) {
logger.warn(e.getMessage());
} catch (IOException e) {
if (!noSuchProcess(e)) {
logger.warn(e.getMessage(), e);