class ScriptManager {

    @PostConstruct
    void populateScriptsFromResources () {
        scripts.addAll(Arrays.stream(getResources()).filter(not(Resource::isFile).or(this::allowScriptsFromFilesystem))
                             .map(ShellScript::fromResource)
                             .collect(Collectors.toList()));
    }

    public  ScriptManager(@Value("${allowScriptsFromFilesystem:false}") boolean allowScriptsFromFilesystem);

}