Source:
<code>private HashMap<String, String> addParameter( String path, String paramType, String name, String value) { HashMap<String, String> formParams = new HashMap<>(); LOG.debug("Detected parameter: " + path); if (paramType.contains(":")) { String[] stringParts = paramType.split(":"); paramType = stringParts[stringParts.length - 1]; } if (value != null) { formParams.put("xpath:/" + path, value); return formParams; } ValueGenerator coreValGen = null; try { coreValGen = Control.getSingleton() .getExtensionLoader() .getExtension(ExtensionSpider.class) .getValueGenerator(); } catch (NullPointerException e) { LOG.debug(e.getMessage()); } if (coreValGen != null) { <START> HashMap<String, String> fieldAttributes = new HashMap<String, String>(); <END> fieldAttributes.put("Control Type", "TEXT"); fieldAttributes.put("type", name); String valGenValue = coreValGen.getValue( null, null, name, "", Collections.<String>emptyList(), Collections.<String, String>emptyMap(), fieldAttributes); if (valGenValue != null && !valGenValue.isEmpty()) { formParams.put("xpath:/" + path, valGenValue); return formParams; } } switch (paramType) { case "string": formParams.put("xpath:/" + path, "paramValue"); break; case "int": case "double": case "long": formParams.put("xpath:/" + path, "0"); break; case "date": { Date date = new Date(); SimpleDateFormat dt1 = new SimpleDateFormat("CCyy-MM-dd"); String dateS = dt1.format(date); formParams.put("xpath:/" + path, dateS); break; } case "dateTime": { Date date = new Date(); SimpleDateFormat dt1 = new SimpleDateFormat("CCyy-MM-ddThh:mm:ssZ"); String dateS = dt1.format(date); formParams.put("xpath:/" + path, dateS); break; } } return formParams; }</code><technical_language>Map - type arguments removed</technical_language>

Target:
protected HashMap<String, String> addParameter( String path, String paramType, String name, String value) { HashMap<String, String> formParams = new HashMap<>(); LOG.debug("Detected parameter: " + path); if (paramType.contains(":")) { String[] stringParts = paramType.split(":"); paramType = stringParts[stringParts.length - 1]; } if (value != null) { formParams.put("xpath:/" + path, value); return formParams; } if (valueGenerator == null) { valueGenerator = Control.getSingleton() .getExtensionLoader() .getExtension(ExtensionSpider.class) .getValueGenerator(); } Map<String, String> fieldAttributes = new HashMap<>(); fieldAttributes.put("Control Type", "TEXT"); fieldAttributes.put("type", name); String valGenValue = valueGenerator.getValue( null, null, name, "", Collections.emptyList(), Collections.emptyMap(), fieldAttributes); if (valGenValue != null && !valGenValue.isEmpty()) { formParams.put("xpath:/" + path, valGenValue); return formParams; } switch (paramType) { case "string": formParams.put("xpath:/" + path, "paramValue"); break; case "int": case "double": case "long": formParams.put("xpath:/" + path, "0"); break; case "date": { Date date = new Date(); SimpleDateFormat dt1 = new SimpleDateFormat("CCyy-MM-dd"); String dateS = dt1.format(date); formParams.put("xpath:/" + path, dateS); break; } case "dateTime": { Date date = new Date(); SimpleDateFormat dt1 = new SimpleDateFormat("CCyy-MM-ddThh:mm:ssZ"); String dateS = dt1.format(date); formParams.put("xpath:/" + path, dateS); break; } } return formParams; }