private static Class getAttributeTypeClass(int attributeType, String typeStr) {
		Class type = RadiusAttribute.class;
		if (typeStr.equalsIgnoreCase("string"))
			type = StringAttribute.class;
		else if (typeStr.equalsIgnoreCase("octets"))
			type = RadiusAttribute.class;
		// DAVI allow integer8 and integer16
		//else if (typeStr.equalsIgnoreCase("integer") || typeStr.equalsIgnoreCase("date"))
		else if (typeStr.equalsIgnoreCase("integer") || typeStr.equalsIgnoreCase("integer8") || typeStr.equalsIgnoreCase("integer16") || typeStr.equalsIgnoreCase("date"))
			type = IntegerAttribute.class;
		else if (typeStr.equalsIgnoreCase("ipaddr"))
			type = IpAttribute.class;
		return type;
    }