@Override public StepController getNext() { positionController = new PositionController(); final Position p = positionController.getNextPositionWithMissingValues(); if (p != null) { return new Step5cController(new Step5cModel(p), firstLineWithData); } positionController = null; return null; }
@Override public boolean isNecessary() { positionController = new PositionController(); final Position p = positionController.getNextPositionWithMissingValues(); if (p == null) { logger.info("Skip Step 5c since there are not any Positions" + " with missing values"); return false; } step5cModel = new Step5cModel(p); return true; }