auth.initBaseRealm();
if (auth.isInited()) {
PrincipalCollection principals = new SimplePrincipalCollection("system", "it.freedomotic.security");
Subject SysSubject = new Subject.Builder().principals(principals).buildSubject();
SysSubject.getSession().setTimeout(-1);
ThreadState threadState = new SubjectThreadState(SysSubject);
threadState.bind();
LOG.info("Booting as user:" + auth.getSubject().getPrincipal() +". Session will last:"+auth.getSubject().getSession().getTimeout());
}
String resourcesPath =
new File(Info.getApplicationPath()