We should be using ```String.split()``` here.

```java
final String[] tokens = ids.split(",");
for (String id : tokens) {
    ssoid = request.getHeader(id);
    if (ssoid != null) break;
}
```