I will write a inherited class instead of modifying XWalkDefaultClient.java.