Example - LIst Available Queries

//create the request
ListAvailableQueriesRequest queriesRequest = new ListAvailableQueriesRequest(loginEnv);
//Pass in the application name and form name.
queriesRequest.setAppName("P01012");
queriesRequest.setFormName("W01012B");
//excute the call
ListAvailableQueriesResponse responseObjects = queriesRequest.execute();
//Response contains a list of UDO objects grouped by their UDO status
//Get the omwObjectName for the first (0) shared (4) query object
String omwObjectName = responseObjects.getUdoObjects().get(4).getItems().get(0).getOmwObjectName()