From c3ca0bb655b2c70cde752de0894d6a2bf26a66bb Mon Sep 17 00:00:00 2001
From: Javier Ochoa <javo@redhat.com>
Date: Thu, 14 Nov 2024 11:23:26 -0500
Subject: [PATCH] fix checkstyle errors

---
 .../Neo4jContentRetrieverClient.java          | 61 ++++++++++---------
 1 file changed, 32 insertions(+), 29 deletions(-)

diff --git a/src/main/java/com/redhat/composer/config/retriever/contentretriever/Neo4jContentRetrieverClient.java b/src/main/java/com/redhat/composer/config/retriever/contentretriever/Neo4jContentRetrieverClient.java
index e2466e8..e5e6380 100644
--- a/src/main/java/com/redhat/composer/config/retriever/contentretriever/Neo4jContentRetrieverClient.java
+++ b/src/main/java/com/redhat/composer/config/retriever/contentretriever/Neo4jContentRetrieverClient.java
@@ -11,10 +11,11 @@
 import dev.langchain4j.store.graph.neo4j.Neo4jGraph;
 import jakarta.inject.Inject;
 import jakarta.inject.Singleton;
-import java.util.logging.Level;
 import org.eclipse.microprofile.config.inject.ConfigProperty;
 import org.jboss.logging.Logger;
-import org.neo4j.driver.*;
+import org.neo4j.driver.AuthTokens;
+import org.neo4j.driver.Driver;
+import org.neo4j.driver.GraphDatabase;
 
 /**
  * Neo4j Content Retriever Client.
@@ -24,9 +25,9 @@ public class Neo4jContentRetrieverClient extends BaseContentRetrieverClient {
 
   @ConfigProperty(name = "neo4j.default.url")
   private String neo4jUrl;
-  @ConfigProperty( name = "neo4j.default.username")
+  @ConfigProperty(name = "neo4j.default.username")
   private String neo4jUser;
-  @ConfigProperty( name = "neo4j.default.password")
+  @ConfigProperty(name = "neo4j.default.password")
   private String neo4jPassword;
 
   Logger log = Logger.getLogger(Neo4jContentRetrieverClient.class);
@@ -37,33 +38,35 @@ public class Neo4jContentRetrieverClient extends BaseContentRetrieverClient {
 
   // Task: Generate Accurate Cypher Statement to Query a Neo4J Graph
   // Database About a Patients.
-  final PromptTemplate PROMPT_TEMPLATE =
+  static final PromptTemplate PROMPT_TEMPLATE =
       PromptTemplate.from(
           """
-You are Data scientist with deep understanding of Neo4J and the Cypher query language. You have great experience in healthcare. You return high quality Cypher queries based on our Neo4J nodes, relations and properties listed below.
-
-## Rules:
-1. Only use valid Cypher language, don't mix this with SQL or HTML.
-2. Only return the Cypher query without formatting, explanation and markdown. We need it to inject to Neo4J.
-3. Always do lowercase when matching with text.
-4. If you cannot answer the question return empty string.
-5. Only use the nodes, relationships and properties listed below.
-6. When using relationships, make sure to use the correct direction.
-7. Do not use BETWEEN to compare dates.
-8. For date conversions use: datetime(ISODATE).epochMillis
-9. Expect dates in future years like 2122
-
-Schema:
-{{schema}}
-
-***Example usage***
-Find all patients:
-MATCH (p:Patient)
-RETURN p
-
-The user question is:
-{{question}}
-\s""");
+      You are Data scientist with deep understanding of Neo4J and the Cypher query language. 
+      You have great experience in healthcare.
+      You return high quality Cypher queries based on our Neo4J nodes, relations and properties listed below.
+      
+      ## Rules:
+      1. Only use valid Cypher language, don't mix this with SQL or HTML.
+      2. Only return the Cypher query without formatting, explanation and markdown. We need it to inject to Neo4J.
+      3. Always do lowercase when matching with text.
+      4. If you cannot answer the question return empty string.
+      5. Only use the nodes, relationships and properties listed below.
+      6. When using relationships, make sure to use the correct direction.
+      7. Do not use BETWEEN to compare dates.
+      8. For date conversions use: datetime(ISODATE).epochMillis
+      9. Expect dates in future years like 2122
+      
+      Schema:
+      {{schema}}
+      
+      ***Example usage***
+      Find all patients:
+      MATCH (p:Patient)
+      RETURN p
+      
+      The user question is:
+      {{question}}
+      \s""");
 
   /**
    * Get the Content Retriever.