@ Transactional ( readOnly = true ) public Settings getSettings ( ) { try { return ( Settings ) getEntity ( StorageConstants . SETTINGS_ROOT ) ; } catch ( NotFoundException e ) { // should never happen e . printStackTrace ( ) ; LOG . error ( "Could not read Settings node" , e ) ; return new Settings ( ) ; } }
An Authentication object was not found in the SecurityContext