import java.util.Set;
import javax.annotation.PostConstruct;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Alternative;
import org.jboss.errai.security.shared.api.Group;
<BUG>import org.jboss.errai.security.shared.api.Role;
import org.jboss.errai.security.shared.api.identity.User;</BUG>
@Alternative
@ApplicationScoped
<BUG>public class CliIdentity implements User {
private static final long serialVersionUID = -9178650167557721039L;</BUG>
private Set<Role> roles = new HashSet<Role>();

import java.util.Set;
import javax.annotation.PostConstruct;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Alternative;
import org.jboss.errai.security.shared.api.Group;
import org.jboss.errai.security.shared.api.Role;
import org.jboss.errai.security.shared.api.RoleImpl;
import org.jboss.errai.security.shared.api.identity.User;
@Alternative
@ApplicationScoped
public class CliIdentity implements User {
public static final Role ADMIN_ROLE = new RoleImpl("admin");
private static final long serialVersionUID = -9178650167557721039L;
private Set<Role> roles = new HashSet<Role>();
