public static void handleHelloMethod(HTSMsg msg, HTSPServerConnection conn) throws IOException{
		Collection<String> requiredFields = Arrays.asList(new String[]{"htspversion","clientname","clientversion"});
		if(((Number) msg.get("htspversion")).longValue()==1){
			requiredFields = Arrays.asList(new String[]{"htspversion","clientname"});
		}
		if (msg.keySet().containsAll(requiredFields)){
			HTSMsg reply = new HTSMsg();
			handleExtraFields(msg,reply);
			reply.put("htspversion", htspversion);
			reply.put("servername", servername);
			reply.put("serverversion", serverversion);
			reply.put("servercapability", servercapability);
			reply.put("challenge", createChallence());
			conn.send(reply);
		} else{
			System.out.println("Faulty request");
		}
	}