*/
                String string;
                if ((string = pipRequest.getIssuer()) == null) {
+
                        logger.debug("No issuer in the request...");
+                       logger.debug("FeqLimiter PIP - No issuer in the request!");
                        return StdPIPResponse.PIP_RESPONSE_EMPTY;
                }
                else{
                        //Notice, we are checking here for the base issuer prefix.
                        if (!string.contains(this.getIssuer())) {
-                               logger.debug("Requested issuer '" + string + "' does not match " + (this.getIssuer() == null ? "null" : "'" + this.getIssuer() + "'"));
+                               logger.debug("Requested issuer '{}' does not match {}", string, (this.getIssuer() == null ? "null" : "'" + this.getIssuer() + "'"));
+                               logger.debug("FeqLimiter PIP - Issuer {}  does not match with: ", string, this.getIssuer());
                                return StdPIPResponse.PIP_RESPONSE_EMPTY;
                        }
                }
        
                String timeWindow = timeWindowVal + " " + timeWindowScale;
                
-               logger.debug("Going to query DB about: "+actor + " " + operation + " " + target + " " + timeWindow);
+               logger.debug("Going to query DB about: {} {} {} {}", actor, operation, target, timeWindow);
                int countFromDB = getCountFromDB(actor, operation, target, timeWindow);
                 
                StdMutablePIPResponse stdPIPResponse    = new StdMutablePIPResponse();
 
                try {
                        pipResponse     = pipFinder.getMatchingAttributes(pipRequest, this);
-                       if (pipResponse.getStatus() != null && !pipResponse.getStatus().isOk()) {
-                               logger.debug("Error retrieving " + pipRequest.getAttributeId().stringValue() + ": " + pipResponse.getStatus().toString());
-                               pipResponse     = null;
-                       }
-                       if (pipResponse.getAttributes() != null && pipResponse.getAttributes().isEmpty()) {
-                               logger.debug("No value for {}", pipRequest.getAttributeId().stringValue());
-                               pipResponse     = null;
+                       if (pipResponse != null) {
+                               if (pipResponse.getStatus() != null && !pipResponse.getStatus().isOk()) {
+                                       logger.debug("Error retrieving {}: {}", pipRequest.getAttributeId().stringValue(), pipResponse.getStatus().toString());
+                                       pipResponse     = null;
+                               }
+                               if (pipResponse.getAttributes() != null && pipResponse.getAttributes().isEmpty()) {
+                                       logger.debug("Error retrieving {}: {}", pipRequest.getAttributeId().stringValue(), pipResponse.getStatus().toString());
+                                       pipResponse     = null;
+                               }
                        }
                } catch (PIPException ex) {
-                       logger.error("getAttribute threw: ", ex);
+                       logger.error("getAttribute threw:", ex);
                }
                return pipResponse;
        }
                        return -1;
                }
                
-
                em.close();
                
                return ret;     
        }
 
 
-}
+}
\ No newline at end of file