protected ApiProperties() {
		try {

			InputStream file = new FileInputStream(
					new File("butler.properties"));
			Properties props = new Properties();
			props.load(file);
			appId = props.getProperty("appId");
			appSecret = props.getProperty("appSecret");
			apiAccesKey = props.getProperty("apiAccesKey");
			cloudUrl = props.getProperty("url");
			version = props.getProperty("version");
			protocol = props.getProperty("protocol");
			customerGroupNumber = props.getProperty("customerGroupNumber");
			timeOut = Integer.valueOf(props.getProperty("timeOut")).intValue();

			cashin = props.getProperty("cashin");
			cashout = props.getProperty("cashout");

			if (protocol == null || !protocol.equals("http")
					&& !protocol.equals("https"))
				protocol = "https";
			StringBuilder sb = new StringBuilder();
			sb.append(protocol);
			sb.append("://");
//			if (!cloudUrl.startsWith("www.") && !isValidIP(cloudUrl))
//				sb.append("www.");
			sb.append(cloudUrl);
			if (!cloudUrl.endsWith("/"))
				sb.append("/");
			sb.append(version);
			if (!version.endsWith("/"))
				sb.append("/");
			url = sb.toString();
		} catch (Exception e) {
			System.out.println("error" + e);
		}

	}