private void handleCheckType(OInsertExecutionPlan result, OCommandContext ctx, boolean profilingEnabled) { if (targetClass != null) { result.chain(new CheckClassTypeStep(targetClass.getStringValue(), "V", ctx, profilingEnabled)); } if (targetClusterName != null) { result.chain(new CheckClusterTypeStep(targetClusterName.getStringValue(), "V", ctx, profilingEnabled)); } if (targetCluster != null) { result.chain(new CheckClusterTypeStep(targetCluster, "V", ctx, profilingEnabled)); } } }