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());
}