data.getNodeName());
}
} else {
erts = null;
}
final IOtpNodeProxy nodeProxy = new OtpNodeProxy(data);
nodeProxy.startAndWait();
final IBackendManager backendManager = BackendCore.getBackendManager();
final Backend b = data.isInternal() ? new InternalBackend(data, nodeProxy, erts)
: new ExternalBackend(data, nodeProxy, erts);
b.initialize(data.getContext(), backendManager);
nodeProxy.addStatusHandler(new Procedure1<Boolean>() {
@Override
public void apply(final Boolean up) {
if (!up) {
b.handleCrash(backendManager);
}