if (loginAlias.getRoleType() == roleType) {
if (loginAlias.getRoleType() != null && loginAlias.getRoleType().equals(roleType)) {
    private void removeAliasWithoutCloseLogin(RoleType roleType) {	if (roleType != null) {	    for (final Iterator<LoginAlias> iter = getAlias().iterator(); iter.hasNext();) {		final LoginAlias loginAlias = iter.next();		if (loginAlias.getRoleType() == roleType) {		    iter.remove();		    loginAlias.delete();		}	    }	}    }