If you are using Eclipse as your IDE, you need to add the new .jar file to the build path of your custom component.
To add the new .jar file to your Eclipse build path:
You should have added this variable when you set up the SDK.
After adding the .jar file to the build path, you can import the class, and use your custom QueryFilter or QueryConfig to modify your QueryState.