in src/main/java/com/epam/grid/engine/provider/queue/sge/SgeQueueProvider.java [285:296]
private Queue createQueueFromTemporaryFile(final Path pathToTemporaryQueueDescription) {
try (Stream<String> lines = Files.lines(pathToTemporaryQueueDescription)) {
final List<String> rawEntity = lines.collect(Collectors.toList());
final SgeQueue sgeQueue = queueMapper.mapRawOutputToSgeQueue(SgeOutputParsingUtils
.parseEntitiesToMap(rawEntity));
return queueMapper.sgeQueueToQueue(sgeQueue);
} catch (final IOException e) {
throw new GridEngineException(HttpStatus.INTERNAL_SERVER_ERROR, TEMPORARY_FILE_WAS_NOT_FOUND, e);
} finally {
deleteTemporaryDescriptionFile(pathToTemporaryQueueDescription);
}
}