public OMElement countAvailableTasks(final OMElement requestElement) throws AxisFault {
ITaskDAOConnection dao=null;
try {
dao=_taskDAOFactory.openConnection();
OMElementQueue rootQueue = new OMElementQueue(requestElement);
String participantToken = requireElementValue(rootQueue, "participantToken");
String taskType = requireElementValue(rootQueue, "taskType");
String subQuery = requireElementValue(rootQueue, "subQuery");
String first = expectElementValue(rootQueue, "first");
String max = expectElementValue(rootQueue, "max");