public static Iterable<SearchModelAuthorizable> parseRole(String string) {
List<SearchModelAuthorizable> result = Lists.newArrayList();
for(String section : AUTHORIZABLE_SPLITTER.split(string)) {
// XXX this ugly hack is because action is not an authorizeable
if(!section.toLowerCase().startsWith(PRIVILEGE_PREFIX)) {
SearchModelAuthorizable authorizable = SearchModelAuthorizables.from(section);
if(authorizable == null) {
String msg = "No authorizable found for " + section;
throw new ConfigurationException(msg);
}
result.add(authorizable);