Buggy code:
public class TransformersImpl implements Transformers { private static final Logger log = Logger . getLogger ( TransformersImpl . class ) ; private final TransformationTarget target ; TransformersImpl ( TransformationTarget target ) { } @ Override public TransformationTarget getTarget ( ) { } @ Override public ModelNode transformOperation ( final TransformationContext context , final ModelNode operation ) { } @ Override public Resource transformResource ( final TransformationContext context , Resource resource ) { } private Resource resolveRecursive ( final Resource resource , final ImmutableManagementResourceRegistration registration , final PathAddress address ) { boolean isSubsystem = ( ( ( address . size ( ) ) > 0 ) && ( ! ( EXTENSION . equals ( address . getElement ( 0 ) . getKey ( ) ) ) ) ) && ( SUBSYSTEM . equals ( address . getLastElement ( ) . getKey ( ) ) ) ; if ( isSubsystem ) { String subsystemName = address . getLastElement ( ) . getValue ( ) ; SubsystemTransformer transformer = target . getSubsystemTransformer ( subsystemName ) ; if ( transformer != null ) { <START_BUG> TransformersImpl . log . info ( ( ( ( ( ( "transforming<seq2seq4repair_space>subsystem:<seq2seq4repair_space>" + subsystemName ) + ",<seq2seq4repair_space>to<seq2seq4repair_space>model<seq2seq4repair_space>version:<seq2seq4repair_space>" ) + ( transformer . getMajorManagementVersion ( ) ) ) + "." ) + ( transformer . getMinorManagementVersion ( ) ) ) ) ; <END_BUG> ResourceDefinition rd = TransformerRegistry . loadSubsystemDefinition ( subsystemName , transformer . getMajorManagementVersion ( ) , transformer . getMinorManagementVersion ( ) ) ; ManagementResourceRegistration targetDefinition = Factory . create ( rd ) ; ModelNode fullSubsystemModel = Tools . readModel ( resource ) ; ModelNode transformed = transformer . transformModel ( null , fullSubsystemModel ) ; return TransformerRegistry . modelToResource ( targetDefinition , transformed ) ; } return resource ; } for ( PathElement element : registration . getChildAddresses ( EMPTY_ADDRESS ) ) { if ( element . isMultiTarget ( ) ) { final String childType = element . getKey ( ) ; for ( final Resource . ResourceEntry entry : resource . getChildren ( childType ) ) { final ImmutableManagementResourceRegistration childRegistration = registration . getSubModel ( PathAddress . pathAddress ( PathElement . pathElement ( childType , entry . getName ( ) ) ) ) ; Resource res = resolveRecursive ( entry , childRegistration , address . append ( entry . getPathElement ( ) ) ) ; if ( ! ( res . equals ( entry ) ) ) { resource . removeChild ( entry . getPathElement ( ) ) ; resource . registerChild ( entry . getPathElement ( ) , res ) ; } } } else { final Resource child = resource . getChild ( element ) ; final ImmutableManagementResourceRegistration childRegistration = registration . getSubModel ( PathAddress . pathAddress ( element ) ) ; if ( child != null ) { Resource res = resolveRecursive ( child , childRegistration , address . append ( element ) ) ; if ( ! ( res . equals ( child ) ) ) { resource . removeChild ( element ) ; resource . registerChild ( element , res ) ; } } } } return resource ; } static class DelegateTransformContext implements TransformationContext { private final OperationContext context ; DelegateTransformContext ( OperationContext context ) { } @ Override public ProcessType getProcessType ( ) { } @ Override public RunningMode getRunningMode ( ) { } @ Override public ImmutableManagementResourceRegistration getResourceRegistration ( final PathAddress address ) { } @ Override public ImmutableManagementResourceRegistration getResourceRegistrationFromRoot ( final PathAddress address ) { } @ Override public Resource readResource ( PathAddress address ) { } @ Override public Resource readResourceFromRoot ( PathAddress address ) { } } }

Fix:
TransformersImpl . log . debug ( ( ( ( ( ( "transforming<seq2seq4repair_space>subsystem:<seq2seq4repair_space>" + subsystemName ) + ",<seq2seq4repair_space>to<seq2seq4repair_space>model<seq2seq4repair_space>version:<seq2seq4repair_space>" ) + ( transformer . getMajorManagementVersion ( ) ) ) + "." ) + ( transformer . getMinorManagementVersion ( ) ) ) ) ;