@Override
public void postInitialise(Config config) {
CoreRegistry.putPermanently(RenderingSubsystemFactory.class, new HeadlessRenderingSubsystemFactory());
HeadlessDisplayDevice headlessDisplay = new HeadlessDisplayDevice();
CoreRegistry.putPermanently(DisplayDevice.class, headlessDisplay);
initHeadless();
CoreRegistry.putPermanently(NUIManager.class, new NUIManagerInternal(new HeadlessCanvasRenderer()));