You're right, services may have been changed and reloaded. This is the problem with that strategy : checking the service at logout and not at creation. That said, I will just check for nullity here to avoid a NullPointerException. Even if the service is now disabled, I'd like to know if it was a front or back one...