private void createPlugins(String entityName, FlowType flowType, CodeFormat codeFormat) throws IOException {
String flowName = entityName + flowType + "-flow";
String flowTypePath = ScaffoldingImpl.getAbsolutePath(projectPath, "entities", entityName, flowType.toString());
String flowPath = ScaffoldingImpl.getAbsolutePath(flowTypePath, flowName);
List<Plugin> plugins = new ArrayList<>();
if (flowType.equals(FlowType.HARMONIZE)) {
plugins.add(createPluginObj(flowPath, "collector", flowType, codeFormat));
}
plugins.add(createPluginObj(flowPath, "content", flowType, codeFormat));
plugins.add(createPluginObj(flowPath, "headers", flowType, codeFormat));
plugins.add(createPluginObj(flowPath, "triples", flowType, codeFormat));
for (Plugin plugin : plugins) {
createFile(plugin.getParentDirectory(), plugin.getFilename(), plugin.getTemplateFilePath());
}
}