Object value = srcAttrs.getObject(key);
dstAttrs.setObject(key, value);
}
// Copy described
Described srcDescribed = srcPage.adapt(Described.class);
Described dstDescribed = dstPage.adapt(Described.class);
dstDescribed.setName(srcDescribed.getName());
dstDescribed.setDescription(srcDescribed.getDescription());
// Copy src permissions to dst permission
ProtectedResource srcPR = srcPage.adapt(ProtectedResource.class);
ProtectedResource dstPR = dstPage.adapt(ProtectedResource.class);
dstPR.setAccessPermissions(srcPR.getAccessPermissions());