public static int parseDataTransferRate(String value) throws ParseException{
		Pattern p = Pattern.compile("\\s*(((?<mb>[1-9][0-9]*)\\s*(Mbps)?)|((?<gb>[1-9](\\.[0-9]+)*)\\s*Gbps))\\s*");
		Matcher m = p.matcher(value);
		
		if (m.matches()){
			String mb = m.group("mb");
			String gb = m.group("gb");
			
			if (null != mb){
				return Integer.parseInt(mb);
			} else {
				return (int) (Double.parseDouble(gb) * 1024);
			}
		}
		throw new ParseException("Data transfer rate doesn't match pattern");
	}