DTGOV-168 WorkflowQueryService code cleaning

https://issues.jboss.org/browse/DTGOV-168