int len = allowedPatterns.length;
for(int i = 0; i < len; i++) {
//System.out.println("["+allowedPatterns[i]+"]");
if(util.match("/"+allowedPatterns[i]+"/", in)) {
//System.out.println("["+in+"] matched ["+allowedPatterns[i]);
return in;
}
}
throw new UnexpectedFormatException("["+in+"]");