code: private void addParsedPolicyEntries(List<ParsedPolicyEntry> parsedEntries, List<ProGradePolicyEntry> entries,
              KeyStore keystore, boolean grant) throws Exception {
          for (ParsedPolicyEntry p : parsedEntries) {
              try {
                  entries.add(initializePolicyEntry(p, keystore, grant));
              } catch (Exception e) {
                  System.err.println("Unable to initialize policy entry: " + e.getMessage());
              }
          }
      }
docs: Private method which adds parsedEntries to entries.
  
  @param parsedEntries parsed entries from policy file which will be added to entries
  @param entries entries will add parsed entries to themselves
  @param keystore KeyStore which is used by this policy file
  @param grant true for priority grant, false for priority deny
  @throws Exception when there was any problem during adding entries to policy