class WakeOnLanInstallation implements InitializingBean {

    protected void installWakeOnLan() {
        logger.info("Checking if wakeonlan is installed.");
        File file = new File(wakeOnLanCommand);
        boolean isWakeOnLanInstalled = file.exists();
        if (isWakeOnLanInstalled) {
            logger.info("Wakeonlan is already installed.");
            return;
        }
        logger.info("Wakeonlan is not installed.");
        logger.info("Installing wakeonlan.");
        String logInstallation = shellCommandUtils.executeCommand(String.format("%s", aptitudeInstallWakeOnLan));
        logger.info(logInstallation);
        logger.info("Installation finished.");
    }

}