class SieveRepositoryManagement extends StandardMBean implements SieveRepositoryManagementMBean {

    @Override
    public void addActiveSieveScriptFromFile(String userName, String scriptName, String scriptPath) throws SieveRepositoryException {
        try (InputStream scriptFileAsStream = new FileInputStream(scriptPath)) {
            addActiveSieveScript(userName, scriptName, IOUtils.toString(scriptFileAsStream, StandardCharsets.UTF_8));
        } catch (IOException e) {
            LOGGER.error("Error while reading sieve script from file {}", scriptPath, e);
        }
    }

    public  SieveRepositoryManagement();

}