public static Client getClientInstance(ElasticClientType clientType) {
		String HOSTNAME;
		int PORT;
		switch(clientType) {
		case TEST:
			System.out.println("Getting client");
			if(node == null) {
				System.out.println("Got New Node");
				node = new NodeBuilder().settings(getTestSettings()).node();
			}
			return node.client();
			
		case DEV:
			HOSTNAME = "localhost";
			PORT = 9300;
			return new TransportClient(getDevSettings())
						.addTransportAddress(new InetSocketTransportAddress(HOSTNAME, PORT));
			
		case QA:
			throw new UnsupportedOperationException("QA type environment is not supported yet");
			
		case PROD: 
			throw new UnsupportedOperationException("PROD type environment is not supported yet");
			
		default:
			if(node == null) { 
				node = new NodeBuilder().settings(getTestSettings()).node();
			}
			return node.client();
					
		}
	}