The Java API function setSearchUseOfObjects() can be used to 'search for use', however this does not always return all objects, while the same object can be found in AWI.
For instance, in AWI includes (JOBI) are searchable, in the JavaAPI this was not implemented
Release : 12.3
Component : AUTOMATION ENGINE
In AWI 'Search for Use' uses the REST API and the Lucene index, while the Java API searches directly in the database.
The Java API is therefore slow and not all object are searchable.
Workaround:
Use the REST API in your Java API code through JREST (https://jrest.io/)