package Ġcz . v ut br . fit . k not . entic ing . management . management service . init Ċ Ċ import Ġcz . v ut br . fit . k not . entic ing . dto . annotation . Incomplete Ċ import Ġcz . v ut br . fit . k not . entic ing . log . LoggerFactory Ċ import Ġcz . v ut br . fit . k not . entic ing . log . logger Ċ import Ġcz . v ut br . fit . k not . entic ing . management . management service . dto . Create UserRequest Ċ import Ġcz . v ut br . fit . k not . entic ing . management . management service . service . Management UserService Ċ import Ġorg . springframework . boot . Application Arguments Ċ import Ġorg . springframework . boot . Application Runner Ċ import Ġorg . springframework . core . annotation . Order Ċ import Ġorg . springframework . stereotype . Component Ċ import Ġkotlin . random . Random Ċ Ċ @ Component Ċ @ Order ( 1 ) Ċ @ Incomplete (" this Ġimplementation Ġis Ġbad Ġbad , Ġbad , Ġload Ġpassword Ġfrom Ġthe Ġenvironment Ġinstead ?") Ċ class ĠAdd System D emon Runner ( ĊĠĠĠĠĠĠĠ Ġprivate Ġval ĠuserService : ĠManagement UserService , ĊĠĠĠĠĠĠĠ Ġlogger Factory : ĠLoggerFactory Ċ ) Ġ: ĠApplication Runner Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġlogger Ġ= Ġlogger Factory . logger Ġ{ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġrun ( args : ĠApplication Arguments ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġlogger . info (" Creating Ġsystem Ġdaemon ") ĊĠĠĠĠĠĠĠ ĠuserService . createNew User ( Create UserRequest (" System Daemon ", Ġrnd (), Ġset Of (" ADMIN ", Ġ" PLATFORM _ MA INT AIN ER ", Ġ" USER "))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġrnd (): ĠString Ġ= Ġbuild String Ġ{ ĊĠĠĠĠĠĠĠ Ġfor Ġ( i Ġin Ġ 0 Ġuntil Ġ 4 2 ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġappend (' a ' Ġ+ ĠRandom . nextInt ( 2 6 )) ĊĠĠĠ Ġ} Ċ }