@Override
public OutputStream getOutputStream() throws RuntimeIOException {
if (isTempFile) {
return super.getOutputStream();
} else {
<BUG>logger.debug("Opening " + SSH_PROTOCOL + ":{}: output stream to write to file {}", connection.sshConnectionType.toString().toLowerCase(), this);
</BUG>
return new SshElevatedUserOutputStream(this, connection.getTempFile(getName()));
}
}

@Override
protected int executeCommand(OverthereExecutionOutputHandler outHandler, OverthereExecutionOutputHandler errHandler, CmdLine commandLine) {
if (isTempFile) {
commandLine = SshConnection.prefixWithPseudoCommand(commandLine, NOELEVATION_PSEUDO_COMMAND);
}
return super.executeCommand(outHandler, errHandler, commandLine);
}
