private void handleFetchFromTo(ODeleteExecutionPlan result, OCommandContext ctx, String fromAlias, String toAlias, OIdentifier targetClass, OIdentifier targetCluster, boolean profilingEnabled) { if (fromAlias != null && toAlias != null) { result.chain(new FetchEdgesFromToVerticesStep(fromAlias, toAlias, targetClass, targetCluster, ctx, profilingEnabled)); } else if (toAlias != null) { result.chain(new FetchEdgesToVerticesStep(toAlias, targetClass, targetCluster, ctx, profilingEnabled)); } }