Source:
private static List<QueryParam> getQueryParamsFromQueryElement( OMElement queryEl) throws DataServiceFault { ArrayList<QueryParam> queryParams = new ArrayList<QueryParam>(); Iterator<OMElement> paramItr = queryEl.getChildrenWithName(new QName(DBSFields.PARAM)); OMElement paramEl; String name, sqlType, type, paramType, ordinalStr, defaultValue, structType; int ordinal, currentTmpOrdinal = 0; boolean forceDefault = false; while (paramItr.hasNext()) { forceDefault = false; paramEl = paramItr.next(); name = paramEl.getAttributeValue(new QName(DBSFields.NAME)); if (name != null) { name = name.trim(); } defaultValue = paramEl.getAttributeValue(new QName(DBSFields.DEFAULT_VALUE)); ordinalStr = paramEl.getAttributeValue(new QName(DBSFields.ORDINAL)); if (ordinalStr != null && (ordinal = Integer.parseInt(ordinalStr)) > 0) { currentTmpOrdinal = Math.max(ordinal, currentTmpOrdinal); } else { currentTmpOrdinal++; ordinal = currentTmpOrdinal; } sqlType = paramEl.getAttributeValue(new QName(DBSFields.SQL_TYPE)); type = paramEl.getAttributeValue(new QName(DBSFields.TYPE)); if (type == null || type.trim().length() == 0) { type = QueryTypes.IN; } paramType = paramEl.getAttributeValue(new QName(DBSFields.PARAM_TYPE)); if (paramType == null || paramType.trim().length() == 0) { paramType = QueryParamTypes.SCALAR; } if (paramEl.getAttributeValue(new QName(DBSFields.FORCEDEFAULT)) != null) { forceDefault = Boolean.parseBoolean(paramEl.getAttributeValue(new QName(DBSFields.FORCEDEFAULT))); } List<Validator> validators = getValidators(paramType, paramEl); structType = paramEl.getAttributeValue(new QName(DBSFields.STRUCT_TYPE)); queryParams.add(new QueryParam(name, sqlType, type, paramType, ordinal, defaultValue == null ? null : new ParamValue(defaultValue), structType, validators,forceDefault)); } return queryParams; }

Target:
private static List<QueryParam> getQueryParamsFromQueryElement( OMElement queryEl) throws DataServiceFault { ArrayList<QueryParam> queryParams = new ArrayList<QueryParam>(); Iterator<OMElement> paramItr = queryEl.getChildrenWithName(new QName(DBSFields.PARAM)); OMElement paramEl; String name, sqlType, type, paramType, ordinalStr, defaultValue, structType; int ordinal, currentTmpOrdinal = 0; boolean forceDefault = false; while (paramItr.hasNext()) { forceDefault = false; paramEl = paramItr.next(); name = paramEl.getAttributeValue(new QName(DBSFields.NAME)); if (name != null) { name = name.trim(); } defaultValue = paramEl.getAttributeValue(new QName(DBSFields.DEFAULT_VALUE)); ordinalStr = paramEl.getAttributeValue(new QName(DBSFields.ORDINAL)); if (ordinalStr != null && (ordinal = Integer.parseInt(ordinalStr)) > 0) { currentTmpOrdinal = Math.max(ordinal, currentTmpOrdinal); } else { currentTmpOrdinal++; ordinal = currentTmpOrdinal; } sqlType = paramEl.getAttributeValue(new QName(DBSFields.SQL_TYPE)); type = paramEl.getAttributeValue(new QName(DBSFields.TYPE)); if (type == null || type.trim().length() == 0) { type = QueryTypes.IN; } paramType = paramEl.getAttributeValue(new QName(DBSFields.PARAM_TYPE)); if (paramType == null || paramType.trim().length() == 0) { paramType = QueryParamTypes.SCALAR; } if (paramEl.getAttributeValue(new QName(DBSFields.FORCED_DEFAULT)) != null) { forceDefault = Boolean.parseBoolean(paramEl.getAttributeValue(new QName(DBSFields.FORCED_DEFAULT))); } List<Validator> validators = getValidators(paramType, paramEl); structType = paramEl.getAttributeValue(new QName(DBSFields.STRUCT_TYPE)); queryParams.add(new QueryParam(name, sqlType, type, paramType, ordinal, defaultValue == null ? null : new ParamValue(defaultValue), structType, validators, forceDefault)); } return queryParams; }