Background
In the AbstractCommandExecutor class ,commandType function is used to stitching the final command strings.
processBuilder.command("sudo", "-u", tenantCode, commandType(), commandFile);
That is difficult to understand, which even is ambiguous.
Why not rename commandType function a better name
Suggestion
rename 'commandType' to 'commandInterpreter'