Adding JNI layer for filter_policy