Buggy code:
public class AS7BindingRegistry implements BindingRegistry { private static final Logger logger = Logger . getLogger ( AS7BindingRegistry . class ) ; private final ServiceContainer container ; public AS7BindingRegistry ( ServiceContainer container ) { } @ Override public Object getContext ( ) { } @ Override public void setContext ( Object ctx ) { } @ Override public Object lookup ( String name ) { } @ Override public boolean bind ( String name , Object obj ) { if ( ( name == null ) || ( name . isEmpty ( ) ) ) { throw new IllegalArgumentException ( "Cannot<seq2seq4repair_space>bind<seq2seq4repair_space>a<seq2seq4repair_space>null<seq2seq4repair_space>or<seq2seq4repair_space>empty<seq2seq4repair_space>string<seq2seq4repair_space>as<seq2seq4repair_space>jndi<seq2seq4repair_space>name" ) ; } if ( ( ( ( ( ( name . equals ( "java:jboss//" ) ) || ( name . equals ( "java:comp//" ) ) ) || ( name . equals ( "java:module//" ) ) ) || ( name . equals ( "java://app" ) ) ) || ( name . equals ( "java:global//" ) ) ) || ( name . equals ( "java://" ) ) ) { throw new IllegalArgumentException ( ( "Missing<seq2seq4repair_space>relative<seq2seq4repair_space>path<seq2seq4repair_space>in<seq2seq4repair_space>(invalid)<seq2seq4repair_space>jndi<seq2seq4repair_space>name:<seq2seq4repair_space>" + name ) ) ; } final AS7BindingRegistry . JndiBinding jndiBinding = AS7BindingRegistry . JndiBinding . parse ( name ) ; if ( jndiBinding == null ) { throw new IllegalArgumentException ( ( ( "Binding<seq2seq4repair_space>to<seq2seq4repair_space>" + name ) + "<seq2seq4repair_space>isn't<seq2seq4repair_space>allowed,<seq2seq4repair_space>since<seq2seq4repair_space>it<seq2seq4repair_space>belongs<seq2seq4repair_space>to<seq2seq4repair_space>a<seq2seq4repair_space>unknown//unsupported<seq2seq4repair_space>jndi<seq2seq4repair_space>name<seq2seq4repair_space>context" ) ) ; } <START_BUG> final BinderService binderService = new BinderService ( name ) ; <END_BUG> container . addService ( jndiBinding . jndiContextServiceName . append ( jndiBinding . relativeJndiName ) , binderService ) . addDependency ( jndiBinding . jndiContextServiceName , NamingStore . class , binderService . getNamingStoreInjector ( ) ) . addInjection ( binderService . getManagedObjectInjector ( ) , new org . jboss . as . naming . ValueManagedReferenceFactory ( Values . immediateValue ( obj ) ) ) . setInitialMode ( ACTIVE ) . install ( ) ; AS7BindingRegistry . logger . info ( ( "Bound<seq2seq4repair_space>messaging<seq2seq4repair_space>object<seq2seq4repair_space>to<seq2seq4repair_space>jndi<seq2seq4repair_space>name<seq2seq4repair_space>" + jndiBinding ) ) ; return true ; } @ Override public void unbind ( String name ) { } @ Override public void close ( ) { } private static class JndiBinding { private final String relativeJndiName ; private final ServiceName jndiContextServiceName ; private final String cachedToString ; JndiBinding ( final ServiceName contextServiceName , final String relativeJndiName ) { } static AS7BindingRegistry . JndiBinding parse ( final String name ) { } @ Override public String toString ( ) { } private String generateToString ( ) { } } }

Fix:
final BinderService binderService = new BinderService ( jndiBinding . relativeJndiName ) ;