public static Relation valueOf(int s) throws ParseException
	{
		switch(s) {
    		case 0: 	return UNCONFIRMED;
    		case 1:		return BUDDY;
    		case 2: 	return DECLINED;
    		case 3:		return STRANGER;
    		case 4:		return BANNED;
    		default: throw new ParseException("Invalid relation value:"+s+", expected 0,1,2,3,4.");
		}
	}