Object[] args = { name, idNumber, IDDocumentType.valueOf(idType), null, onlyGrantOwner, startIndex };
final IDDocumentType documentType; if (idType != null && idType.length() > 0) { documentType = IDDocumentType.valueOf(idType); } else { documentType = null; }  Object[] args = { name, idNumber, documentType, null, onlyGrantOwner, startIndex };
    protected Object[] getSearchServiceArgs(HttpServletRequest request, ActionForm form)            throws Exception {        DynaValidatorForm searchGrantOwnerForm = (DynaValidatorForm) form;        String name = (String) searchGrantOwnerForm.get("name");        String idNumber = (String) searchGrantOwnerForm.get("idNumber");        String idType = (String) searchGrantOwnerForm.get("idType");        Integer startIndex = (Integer) searchGrantOwnerForm.get("startIndex");        String justGrantOwner = (String) searchGrantOwnerForm.get("justGrantOwner");        Boolean onlyGrantOwner = new Boolean(false);        if (justGrantOwner.equals("on")) {            onlyGrantOwner = new Boolean(true);        }        request.setAttribute("justGrantOwner", justGrantOwner);        request.setAttribute("name", name);        Object[] args = { name, idNumber, IDDocumentType.valueOf(idType), null, onlyGrantOwner, startIndex };        return args;    }