[POLICY-122] Policy GUI Fixes
[policy/engine.git] / ECOMP-PAP-REST / src / main / java / org / openecomp / policy / pap / xacml / rest / util / JPAUtils.java
index 2db7e42..9a23bee 100644 (file)
@@ -138,7 +138,7 @@ public class JPAUtils {
                                try {
                                        buildFunctionMaps();
                                } catch (ServletException e) {
-                                       e.printStackTrace();
+                                       LOGGER.error("Exception Occured"+e);
                                }
                        }
                }
@@ -151,7 +151,7 @@ public class JPAUtils {
                                try {
                                        buildFunctionMaps();
                                } catch (ServletException e) {
-                                       e.printStackTrace();
+                                       LOGGER.error("Exception Occured"+e);
                                }
                        }
                }
@@ -159,8 +159,8 @@ public class JPAUtils {
        }
        
        private void buildFunctionMaps() throws ServletException {
-               mapDatatype2Function = new HashMap<Datatype, List<FunctionDefinition>>();
-               mapID2Function = new HashMap<String, FunctionDefinition>();
+               mapDatatype2Function = new HashMap<>();
+               mapID2Function = new HashMap<>();
 
                EntityManager em = emf.createEntityManager();
                Query getFunctionDefinitions = em.createNamedQuery("FunctionDefinition.findAll");