private void initOperator() throws GraphException { final OperatorSpiRegistry spiRegistry = GPF.getDefaultInstance().getOperatorSpiRegistry(); OperatorSpi operatorSpi = spiRegistry.getOperatorSpi(node.getOperatorName()); if (operatorSpi == null) { throw new GraphException("SPI not found for operator '" + node.getOperatorName() + "'"); } try { this.operator = operatorSpi.createOperator(); this.operator.setLogger(graphContext.getLogger()); // this.operator.setConfiguration(node.getConfiguration()); } catch (OperatorException e) { throw new GraphException("Failed to create instance of operator '" + node.getOperatorName() + "'", e); } }