this.context = null;
}
public void assertAuthenticated() throws UserNotAuthenticated {
if (this.context == null) {
throw new UserNotAuthenticated();
}
try {
final User user = (User) this.context.lookup("openejb/UserBusinessRemote");
user.adminOnly();
} catch (Exception e) {
throw new UserNotAuthenticated(e);
}
}