if (element != null) {
log.debug("Find " + graphicElement + " with id=" + element.getId() + " and workspace=" + workspaceId + " and section=" + sectionId + " and panel=" + panelId);
GraphicElement existingElement = manager.getElement(element.getId(), workspaceId, sectionId, panelId);
if (existingElement != null) {
log.warn("Refusing change " + graphicElement + " workspace, as it would match an existing one.");
status.addMessage("ui.admin.workarea." + graphicElement + "s.cannotChangeScope");
} else {
element.clearDeploymentFiles();
element.setWorkspaceId(workspaceId);
element.setSectionId(sectionId);
element.setPanelId(panelId);