Buggy code:
public class CreateNodeCommand extends NodeServiceCommand { private static final Logger logger = Logger . getLogger ( CreateNodeCommand . class . getName ( ) ) ; @ Override public Object execute ( Object ... parameters ) throws FrameworkException { GraphDatabaseService graphDb = ( ( GraphDatabaseService ) ( arguments . get ( "graphDb" ) ) ) ; StructrNodeFactory nodeFactory = ( ( StructrNodeFactory ) ( arguments . get ( "nodeFactory" ) ) ) ; User user = securityContext . getUser ( ) ; AbstractNode node = null ; if ( graphDb != null ) { Date now = new Date ( ) ; Command createRel = Services . command ( securityContext , CreateRelationshipCommand . class ) ; Map < String , Object > attrs = new HashMap < String , Object > ( ) ; for ( Object o : parameters ) { if ( o instanceof Map ) { Map < String , Object > map = ( ( Map < String , Object > ) ( o ) ) ; attrs . putAll ( map ) ; } else if ( o instanceof Collection ) { Collection < NodeAttribute > c = ( ( Collection ) ( o ) ) ; for ( NodeAttribute attr : c ) { attrs . put ( attr . getKey ( ) , attr . getValue ( ) ) ; } } else if ( o instanceof NodeAttribute ) { NodeAttribute attr = ( ( NodeAttribute ) ( o ) ) ; attrs . put ( attr . getKey ( ) , attr . getValue ( ) ) ; } } Object typeObject = attrs . get ( type . name ( ) ) ; String nodeType = ( typeObject != null ) ? typeObject . toString ( ) : "GenericNode" ; node = nodeFactory . createNode ( securityContext , graphDb . createNode ( ) , nodeType ) ; CreateNodeCommand . logger . log ( Level . FINE , "Node<seq2seq4repair_space>{0}<seq2seq4repair_space>created" , node . getId ( ) ) ; node . setProperty ( type . name ( ) , nodeType ) ; attrs . remove ( type . name ( ) ) ; for ( Map . Entry < String , Object > attr : attrs . entrySet ( ) ) { node . setProperty ( attr . getKey ( ) , attr . getValue ( ) ) ; } attrs . clear ( ) ; if ( ( user != null ) && ( ! ( user instanceof SuperUser ) ) ) { DirectedRelationship rel = new DirectedRelationship ( null , RelType . OWNS , Direction . OUTGOING , Cardinality . OneToMany , null ) ; rel . createRelationship ( securityContext , user , node ) ; CreateNodeCommand . logger . log ( Level . FINEST , "Relationship<seq2seq4repair_space>to<seq2seq4repair_space>owner<seq2seq4repair_space>{0}<seq2seq4repair_space>added" , user . getName ( ) ) ; Principal principal ; Group group = user . getGroupNode ( ) ; if ( group != null ) { principal = group ; } else { principal = user ; } StructrRelationship securityRel = ( ( StructrRelationship ) ( createRel . execute ( principal , node , SECURITY , true ) ) ) ; securityRel . setAllowed ( Permission . values ( ) ) ; CreateNodeCommand . logger . log ( Level . FINEST , "All<seq2seq4repair_space>permissions<seq2seq4repair_space>given<seq2seq4repair_space>to<seq2seq4repair_space>{0}" , principal . getName ( ) ) ; node . unlockReadOnlyPropertiesOnce ( ) ; node . setProperty ( createdBy . name ( ) , user . getProperty ( uuid ) , false ) ; } node . unlockReadOnlyPropertiesOnce ( ) ; node . setProperty ( createdDate . name ( ) , now , false ) ; node . setProperty ( lastModifiedDate . name ( ) , now , false ) ; } if ( node != null ) { node . onNodeCreation ( ) ; <START_BUG> for ( Transformation < AbstractNode > transformation : EntityContext . getPostCreationTransformations ( node . getClass ( ) ) ) { <END_BUG> transformation . apply ( securityContext , node ) ; } } return node ; } }

Fix:
for ( Transformation < AbstractNode > transformation : EntityContext . getEntityCreationTransformations ( node . getClass ( ) ) ) {