Common module move packages
Implement Query functionality of Java client.