try {
String content = IOUtils.toString(input, "UTF-8");
input.close();
resolvePreservationCases(content);
user.getUserGroup().getPolicies().add(new RDFPolicy(content));
log.info("Imported new policies for user " + user.getUsername());
return true;
} catch (Exception e) {
log.error("Failed to import policies for user " + user.getUsername(), e);
}