private ValidatedResponse validateBRMSSuggestionCompletionLoaderResponse(
     BRMSSuggestionCompletionLoader loader) {
   ValidatedResponse res = new ValidatedResponse();
   if (loader.hasErrors()) {
     res.hasErrors = true;
     String err = "";
     for (Iterator iter = loader.getErrors().iterator(); iter.hasNext(); ) {
       err += (String) iter.next();
       if (iter.hasNext()) err += "\n";
     }
     res.errorHeader = "Package validation errors";
     res.errorMessage = err;
   }
   return res;
 }
  public ValidatedResponse validatePackageConfiguration(PackageConfigData data)
      throws SerializationException {
    log.info(
        "USER:"******" validatePackageConfiguration package ["
            + data.getName()
            + "]");

    RuleBaseCache.getInstance().remove(data.getUuid());
    BRMSSuggestionCompletionLoader loader = createBRMSSuggestionCompletionLoader();
    loader.getSuggestionEngine(rulesRepository.loadPackage(data.getName()), data.getHeader());

    return validateBRMSSuggestionCompletionLoaderResponse(loader);
  }