private void copyPermissions(IntegrationEntity original, IntegrationEntity copy, IntegrationProject project) {
try {
ManagedProject mp = project.getExtensionObject(ManagedProject.class);
PermissionsManager perms = mp.getPermissions();
perms.copyPermissions(original, copy);
perms.save();
} catch (PermissionsStorageException e) {
ErrorLog.attention(getClass(), "The permission settings could not be copied.", e);
}
}