Buggy code:
@ Override public void setResourceUri ( final String resourceUriArg ) { } @ Override public VersionHandler getVersionHandler ( ) { } @ Override public void handleStatement ( Statement statement ) throws DMPGraphException { ( i ) ++ ; processor . ensureRunningTx ( ) ; try { if ( ( ( ! ( statement . getOptionalSubjectNodeType ( ) . isPresent ( ) ) ) || ( ! ( statement . getOptionalPredicateURI ( ) . isPresent ( ) ) ) ) || ( ! ( statement . getOptionalObjectNodeType ( ) . isPresent ( ) ) ) ) { throw new DMPGraphException ( "cannot<seq2seq4repair_space>handle<seq2seq4repair_space>statement,<seq2seq4repair_space>because<seq2seq4repair_space>no<seq2seq4repair_space>subject<seq2seq4repair_space>node<seq2seq4repair_space>type<seq2seq4repair_space>or<seq2seq4repair_space>predicate<seq2seq4repair_space>uri<seq2seq4repair_space>or<seq2seq4repair_space>object<seq2seq4repair_space>node<seq2seq4repair_space>type<seq2seq4repair_space>is<seq2seq4repair_space>present" ) ; } final NodeType subjectNodeType = statement . getOptionalSubjectNodeType ( ) . get ( ) ; final NodeType objectNodeType = statement . getOptionalObjectNodeType ( ) . get ( ) ; final Optional < Node > optionalSubjectNode = processor . determineNode ( statement . getOptionalSubjectNodeType ( ) , statement . getOptionalSubjectId ( ) , statement . getOptionalSubjectURI ( ) , statement . getOptionalSubjectDataModelURI ( ) ) ; final Node subjectNode ; if ( optionalSubjectNode . isPresent ( ) ) { subjectNode = optionalSubjectNode . get ( ) ; } else { subjectNode = processor . getDatabase ( ) . createNode ( ) ; if ( ( Resource . equals ( subjectNodeType ) ) || ( TypeResource . equals ( subjectNodeType ) ) ) { final String subjectURI = statement . getOptionalSubjectURI ( ) . get ( ) ; subjectNode . setProperty ( URI_PROPERTY , subjectURI ) ; subjectNode . setProperty ( NODETYPE_PROPERTY , Resource . toString ( ) ) ; if ( ( ( resourceUri ) != null ) && ( resourceUri . equals ( subjectURI ) ) ) { versionHandler . setLatestVersion ( statement . getOptionalSubjectDataModelURI ( ) ) ; } processor . handleSubjectDataModel ( subjectNode , subjectURI , statement . getOptionalSubjectDataModelURI ( ) ) ; processor . addNodeToResourcesIndex ( subjectURI , subjectNode ) ; } else { processor . getBNodesIndex ( ) . put ( statement . getOptionalSubjectId ( ) . get ( ) , subjectNode ) ; subjectNode . setProperty ( NODETYPE_PROPERTY , BNode . toString ( ) ) ; } ( addedNodes ) ++ ; } if ( Literal . equals ( objectNodeType ) ) { handleLiteral ( subjectNode , statement ) ; } else { boolean isType = false ; if ( statement . getOptionalPredicateURI ( ) . get ( ) . equals ( type . getURI ( ) ) ) { processor . addLabel ( subjectNode , statement . getOptionalObjectURI ( ) . get ( ) ) ; isType = true ; } final NodeType finalObjectNodeType ; if ( ! isType ) { finalObjectNodeType = objectNodeType ; } else { switch ( objectNodeType ) { case Resource : finalObjectNodeType = NodeType . TypeResource ; break ; case BNode : finalObjectNodeType = NodeType . TypeBNode ; break ; default : finalObjectNodeType = objectNodeType ; } } final Optional < NodeType > finalOptionalObjectNodeType = Optional . of ( finalObjectNodeType ) ; final Optional < Node > optionalObjectNode = processor . determineNode ( finalOptionalObjectNodeType , statement . getOptionalObjectId ( ) , statement . getOptionalObjectURI ( ) , statement . getOptionalObjectDataModelURI ( ) ) ; final Node objectNode ; final Optional < String > optionalResourceUri ; if ( optionalObjectNode . isPresent ( ) ) { objectNode = optionalObjectNode . get ( ) ; optionalResourceUri = Optional . absent ( ) ; } else { objectNode = processor . getDatabase ( ) . createNode ( ) ; if ( ( Resource . equals ( finalObjectNodeType ) ) || ( TypeResource . equals ( finalObjectNodeType ) ) ) { final String objectURI = statement . getOptionalObjectURI ( ) . get ( ) ; objectNode . setProperty ( URI_PROPERTY , objectURI ) ; switch ( finalObjectNodeType ) { case Resource : objectNode . setProperty ( NODETYPE_PROPERTY , Resource . toString ( ) ) ; processor . handleObjectDataModel ( objectNode , statement . getOptionalObjectDataModelURI ( ) ) ; break ; case TypeResource : objectNode . setProperty ( NODETYPE_PROPERTY , TypeResource . toString ( ) ) ; processor . addLabel ( objectNode , Class . getURI ( ) ) ; <START_BUG> processor . addNodeToResourcesIndex ( objectURI , objectNode ) ; <END_BUG> break ; } processor . addObjectToResourceWDataModelIndex ( objectNode , objectURI , statement . getOptionalObjectDataModelURI ( ) ) ; optionalResourceUri = Optional . absent ( ) ; } else { optionalResourceUri = handleBNode ( subjectNode , statement , objectNode , finalOptionalObjectNodeType ) ; } ( addedNodes ) ++ ; } final String hash = processor . generateStatementHash ( subjectNode , statement . getOptionalPredicateURI ( ) . get ( ) , objectNode , subjectNodeType , finalObjectNodeType ) ; final Relationship rel = processor . getStatement ( hash ) ; if ( rel == null ) { final Optional < String > finalOptionalResourceUri ; if ( ! ( optionalResourceUri . isPresent ( ) ) ) { finalOptionalResourceUri = statement . getOptionalResourceURI ( ) ; } else { finalOptionalResourceUri = optionalResourceUri ; } addRelationship ( subjectNode , statement . getOptionalPredicateURI ( ) . get ( ) , objectNode , statement . getOptionalSubjectNodeType ( ) , statement . getOptionalSubjectURI ( ) , statement . getOptionalStatementUUID ( ) , finalOptionalResourceUri , statement . getOptionalQualifiedAttributes ( ) , hash ) ; } } ( totalTriples ) ++ ; final long nodeDelta = ( totalTriples ) - ( sinceLastCommit ) ; final long timeDelta = ( ( System . currentTimeMillis ( ) ) - ( tick ) ) // 1000 ; if ( ( nodeDelta >= 50000 ) || ( timeDelta >= 30 ) ) { processor . renewTx ( ) ; sinceLastCommit = totalTriples ; BaseNeo4jHandler . LOG . debug ( ( ( ( ( totalTriples ) + "<seq2seq4repair_space>triples<seq2seq4repair_space>@<seq2seq4repair_space>~" ) + ( ( ( double ) ( nodeDelta ) ) // timeDelta ) ) + "<seq2seq4repair_space>triples//second." ) ) ; tick = System . currentTimeMillis ( ) ; } } catch ( final Exception e ) { final String message = "couldn't<seq2seq4repair_space>finish<seq2seq4repair_space>write<seq2seq4repair_space>TX<seq2seq4repair_space>successfully" ;

Fix:
processor . addNodeToResourceTypesIndex ( objectURI , objectNode ) ;