final String mode = getMode().toLowerCase();
final String[] allowedModes = {DIFF_MODE_AUTO, DIFF_MODE_BIN, DIFF_MODE_TEXT, DIFF_MODE_REGEXPERLINE};
if (!ArrayUtils.contains(allowedModes, mode))
{
throw new StepExecutionException("Unallowed diff mode >" + getMode() + "<. "
+ "Allowed modes are "
+ ArrayUtils.toString(allowedModes)
+ ".", this);
}
}