}
public void loadPrivileges(InputStream in, String systemId)
throws IOException {
try {
PrivilegeDefinitionReader reader = new PrivilegeDefinitionReader(in, "text/xml");
Collections.addAll(privileges.getDefinitions(), reader.getPrivilegeDefinitions());
for (Map.Entry<String, String> e: reader.getNamespaces().entrySet()) {
privileges.getNamespaceMapping().setMapping(e.getKey(), e.getValue());
}
} catch (ParseException e) {
log.error("Error while reading Privileges: {}", e.toString());
IOException io = new IOException("Error while reading privileges.");