public static DataSourceType get(String s) {

		if (s.equalsIgnoreCase(STR_COUNTER)) {
			return COUNTER;
		} else if (s.equalsIgnoreCase(STR_ABSOLUTE)) {
			return ABSOLUTE;
		} else if (s.equalsIgnoreCase(STR_GAUGE)) {
			return GAUGE;
		} else if (s.equalsIgnoreCase(STR_DERIVE)) {
			return DERIVE;
		} else {
			throw new IllegalArgumentException("Invalid DataSourceType");
		}
	}