public ServiceResponse<KieServerInfo> getInfo() {
   try {
     Version version = KieServerEnvironment.getVersion();
     String versionStr = version != null ? version.toString() : "Unknown-Version";
     return new ServiceResponse<KieServerInfo>(
         ServiceResponse.ResponseType.SUCCESS, "Kie Server info", new KieServerInfo(versionStr));
   } catch (Exception e) {
     logger.error("Error retrieving server info:", e);
     return new ServiceResponse<KieServerInfo>(
         ServiceResponse.ResponseType.FAILURE,
         "Error retrieving kie server info: " + e.getClass().getName() + ": " + e.getMessage());
   }
 }
  private static void startServer() throws Exception {
    System.setProperty(
        "java.naming.factory.initial", "bitronix.tm.jndi.BitronixInitialContextFactory");
    System.setProperty(KieServerConstants.CFG_BYPASS_AUTH_USER, "true");
    System.setProperty(KieServerConstants.CFG_HT_CALLBACK, "custom");
    System.setProperty(
        KieServerConstants.CFG_HT_CALLBACK_CLASS,
        "org.kie.server.integrationtests.jbpm.util.FixedUserGroupCallbackImpl");
    System.setProperty(KieServerConstants.CFG_PERSISTANCE_DS, "jdbc/jbpm-ds");
    System.setProperty(
        KieServerConstants.CFG_PERSISTANCE_TM,
        "org.hibernate.service.jta.platform.internal.BitronixJtaPlatform");
    server = new TJWSEmbeddedJaxrsServer();
    server.setPort(TestConfig.getAllocatedPort());
    server.start();
    KieServerEnvironment.setServerId(
        "target/"
            + KieServerBaseIntegrationTest.class.getSimpleName()
            + "@"
            + serverIdSuffixDateFormat.format(new Date()));
    server.getDeployment().getRegistry().addSingletonResource(new KieServerRestImpl());

    KieServerImpl kieServer = KieServerLocator.getInstance();
    List<KieServerExtension> extensions = kieServer.getServerExtensions();

    for (KieServerExtension extension : extensions) {
      List<Object> components = extension.getAppComponents(SupportedTransports.REST);
      for (Object component : components) {
        server.getDeployment().getRegistry().addSingletonResource(component);
      }
    }

    server
        .getDeployment()
        .setProviderFactory(JacksonRestEasyTestConfig.createRestEasyProviderFactory());
  }