if (source.getAcl() != null) {
writeAcl(writer, cmisVersion, false, source.getAcl());
}
XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_OBJECT_EXACT_ACL, source.isExactAcl());
if (source.getPolicyIds() != null) {
PolicyIdList pids = source.getPolicyIds();
writer.writeStartElement(PREFIX_CMIS, TAG_OBJECT_POLICY_IDS, NAMESPACE_CMIS);
if (pids.getPolicyIds() != null) {
for (String id : pids.getPolicyIds()) {
if (id != null) {
XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_POLICY_ID, id);
}
}
}