protected static List<String> parseRoles(String rolesAsString){
  List<String> roles=new ArrayList<String>();
  StringTokenizer roleTokens=new StringTokenizer(rolesAsString,",");
  while (roleTokens.hasMoreTokens()) {
    String roleToken=roleTokens.nextToken();
    roles.add(roleToken);
  }
  return roles;
}

protected static List < String > parseRoles ( String rolesAsString ) { List < String > roles = new ArrayList < String > ( ) ; StringTokenizer roleTokens = new StringTokenizer ( rolesAsString , "," ) ; while ( roleTokens . hasMoreTokens ( ) ) { String roleToken = roleTokens . nextToken ( ) ; roles . add ( roleToken ) ; } return roles ; }
parse roles defined as a list in the format " role1 , role2 , . . . , rolen " .
