private JstdServer myServer;
@Nullable
public JstdServer getServer() {
return myServer;
}
<BUG>public void restartServer(@NotNull final JstdServerSettings settings, @NotNull final CatchingConsumer<JstdServer, Exception> consumer) {
JstdServer server = myServer;
if (server != null && server.isProcessRunning()) {</BUG>
server.addLifeCycleListener(new JstdServerLifeCycleAdapter() {
@Override

private JstdServer myServer;
@Nullable
public JstdServer getServer() {
return myServer;
}
@NotNull
public Promise<JstdServer> restartServer(@NotNull final JstdServerSettings settings) {
JstdServer server = myServer;
final AsyncPromise<JstdServer> promise = new AsyncPromise<JstdServer>();
if (server != null && server.isProcessRunning()) {
server.addLifeCycleListener(new JstdServerLifeCycleAdapter() {
@Override
