Source:
<code>public Command buildDeleteTableElement(final DTableElement element) { Command cmd = UnexecutableCommand.INSTANCE; if (element instanceof DLine || element instanceof DTargetColumn) { if (!getPermissionAuthority().canEditInstance(element)) { cmd = new InvalidPermissionCommand(domain, element); } else { if (!getPermissionAuthority().canEditInstance(element.eContainer())) { cmd = new InvalidPermissionCommand(domain, element.eContainer()); } else { final SiriusCommand result = new SiriusCommand(domain); DeleteTool deleteTool = getDeleteTool(element); if (deleteTool != null) { addDeleteTableElementFromTool(result, element, deleteTool); addRefreshTask(TableHelper.getTable(element), result, deleteTool); cmd = new NoNullResourceCommand(result, element); } else { final Set<EObject> allSemanticElements = new HashSet<EObject>(); addSemanticElementsToDestroy(element, allSemanticElements); EObjectQuery eObjectQuery = new EObjectQuery(element); <START> DRepresentation dRepresentation = eObjectQuery.getRepresentation().get(); <END> final Set<DSemanticDecorator> tableElements = commandTaskHelper.getDElementToClearFromSemanticElements(dRepresentation, allSemanticElements); for (final DSemanticDecorator decorator : tableElements) { result.getTasks().add(new DeleteTableElementTask(decorator, modelAccessor)); } final Iterator<EObject> it = allSemanticElements.iterator(); while (it.hasNext()) { final EObject eObj = it.next(); result.getTasks().add(new DeleteTableElementTask(eObj, modelAccessor)); } addRefreshTask(TableHelper.getTable(element), result, deleteTool); cmd = new NoNullResourceCommand(result, element); } } } } return cmd; }</code><technical_language>check Option.get() call</technical_language>

Target:
public Command buildDeleteTableElement(final DTableElement element) { Command cmd = UnexecutableCommand.INSTANCE; if (element instanceof DLine || element instanceof DTargetColumn) { if (!getPermissionAuthority().canEditInstance(element)) { cmd = new InvalidPermissionCommand(domain, element); } else { if (!getPermissionAuthority().canEditInstance(element.eContainer())) { cmd = new InvalidPermissionCommand(domain, element.eContainer()); } else { final SiriusCommand result = new SiriusCommand(domain); DeleteTool deleteTool = getDeleteTool(element); DTable parentTable = TableHelper.getTable(element); if (deleteTool != null) { addDeleteTableElementFromTool(result, element, deleteTool); addRefreshTask(parentTable, result, deleteTool); cmd = new NoNullResourceCommand(result, element); } else { final Set<EObject> allSemanticElements = new HashSet<EObject>(); addSemanticElementsToDestroy(element, allSemanticElements); if (parentTable != null) { final Set<DSemanticDecorator> tableElements = commandTaskHelper.getDElementToClearFromSemanticElements(parentTable, allSemanticElements); for (final DSemanticDecorator decorator : tableElements) { result.getTasks().add(new DeleteTableElementTask(decorator, modelAccessor)); } } final Iterator<EObject> it = allSemanticElements.iterator(); while (it.hasNext()) { final EObject eObj = it.next(); result.getTasks().add(new DeleteTableElementTask(eObj, modelAccessor)); } addRefreshTask(parentTable, result, deleteTool); cmd = new NoNullResourceCommand(result, element); } } } } return cmd; }