Source:
<code><START> public void run(PortBindings portBindings, Configuration conf, Map<String, String> parameters) throws Exception { <END> String actionSetId = ProcessUtils.getParameterValue(EXPORT_ACTION_SETID, conf, parameters); Preconditions.checkArgument(StringUtils.isNotBlank(actionSetId) && !WorkflowRuntimeParameters.UNDEFINED_NONEMPTY_VALUE.equals(actionSetId), "unable to export document entities to action manager due to missing action set identifier, " + "no '%s' required parameter provided!", EXPORT_ACTION_SETID); FileSystemPath inputPath = new FileSystemPath(FileSystem.get(conf), portBindings.getInput().get(inputPort)); try (ActionManagerServiceFacade actionManager = buildActionManager(conf, parameters); CloseableIterator<T> it = DataStore.<T> getReader(inputPath)) { MDStoreFacade mdStore = buildMDStoreFacade(parameters); int counter = 0; while (it.hasNext()) { MDStoreIdWithEntityId mdStoreComplexId = deliverMDStoreWithEntityId(it.next()); String mdRecordId = convertToMDStoreEntityId(mdStoreComplexId.getEntityId()); try { String mdRecord = mdStore.deliverRecord(mdStoreComplexId.getMdStoreId(), mdRecordId); handleRecord(mdRecord, actionSetId, actionManager); counter++; } catch (DocumentNotFoundException e) { log.error("mdrecord: " + mdRecordId + " wasn't found in mdstore: " + mdStoreComplexId.getMdStoreId(), e); } catch (Exception e) { log.error("got exception when trying to retrieve " + "MDStore record for mdstore id " + mdStoreComplexId.getMdStoreId() + ", and document id: " + mdRecordId, e); throw e; } } log.warn("exported " + counter + " entities in total"); } }</code><technical_language>great some description of method here. Mind, method signature is generic</technical_language>

Target:
public void run(PortBindings portBindings, Configuration conf, Map<String, String> parameters) throws Exception { String actionSetId = ProcessUtils.getParameterValue(EXPORT_ACTION_SETID, conf, parameters); Preconditions.checkArgument(StringUtils.isNotBlank(actionSetId) && !WorkflowRuntimeParameters.UNDEFINED_NONEMPTY_VALUE.equals(actionSetId), "unable to export document entities to action manager due to missing action set identifier, " + "no '%s' required parameter provided!", EXPORT_ACTION_SETID); FileSystemPath inputPath = new FileSystemPath(FileSystem.get(conf), portBindings.getInput().get(inputPort)); try (ActionManagerServiceFacade actionManager = buildActionManager(conf, parameters); CloseableIterator<T> it = DataStore.<T> getReader(inputPath)) { MDStoreFacade mdStore = buildMDStoreFacade(parameters); int counter = 0; while (it.hasNext()) { MDStoreIdWithEntityId mdStoreComplexId = convertIdentifier(it.next()); String mdRecordId = convertToMDStoreEntityId(mdStoreComplexId.getEntityId()); try { String mdRecord = mdStore.fetchRecord(mdStoreComplexId.getMdStoreId(), mdRecordId); handleRecord(mdRecord, actionSetId, actionManager); counter++; } catch (DocumentNotFoundException e) { log.error("mdrecord: " + mdRecordId + " wasn't found in mdstore: " + mdStoreComplexId.getMdStoreId(), e); } catch (Exception e) { log.error("got exception when trying to retrieve " + "MDStore record for mdstore id " + mdStoreComplexId.getMdStoreId() + ", and document id: " + mdRecordId, e); throw e; } } log.warn("exported " + counter + " entities in total"); } }