flag = false;
    public boolean canConvert (Request req) {        boolean flag;        // can handle input?        final String inType = req.getInputType();        flag = false;        for (int i = 0; i < inputTypeList.length; i++) {            if (inType.equals(inputTypeList[i])) {                flag = true;                break;            }        }        if (! flag) {            return false;	}        // can handle output?        final String outType = req.getOutputType();        flag = false;        for (int i = 0; i < outputTypeList.length; i++) {            if (outType.equals(outputTypeList[i])) {                flag = true;                break;            }        }        if (! flag) {            return false;	}        // supports all parameters?        Iterator it = req.getParameterKeys().iterator();        flag = false;        while (it.hasNext()) {            String key = (String) it.next();            for (int i = 0; i < parameterList.length; i++) {                if (key.equals(parameterList[i])) {                    flag = true;                }            }            if (! flag) {                return false;	    }        }        return true;    }