Ensure that -a <action> is the only parameter of JavaSearchContext

All other parameters that are passed to JavaSearchContext are removed
and -a <action> is the only one that passes through the filter.