Buggy code:
public class PooledConnectionFactoryService implements Service < Void > { private static final List < LocalizedXsdString > EMPTY_LOCL = Collections . emptyList ( ) ; private static final String CONNECTOR_CLASSNAME = "ConnectorClassName" ; private static final String CONNECTION_PARAMETERS = "ConnectionParameters" ; private static final String HQ_ACTIVATION = "org.hornetq.ra.inflow.HornetQActivationSpec" ; private static final String HQ_CONN_DEF = "HornetQConnectionDefinition" ; private static final String HQ_ADAPTER = "org.hornetq.ra.HornetQResourceAdapter" ; private static final String RAMANAGED_CONN_FACTORY = "org.hornetq.ra.HornetQRAManagedConnectionFactory" ; private static final String RA_CONN_FACTORY = "org.hornetq.ra.HornetQRAConnectionFactory" ; private static final String RA_CONN_FACTORY_IMPL = "org.hornetq.ra.HornetQRAConnectionFactoryImpl" ; private static final String JMS_SESSION = "javax.jms.Session" ; private static final String HQ_SESSION = "org.hornetq.ra.HornetQRASession" ; private static final String BASIC_PASS = "BasicPassword" ; private static final String JMS_QUEUE = "javax.jms.Queue" ; private static final String STRING_TYPE = "java.lang.String" ; private static final String INTEGER_TYPE = "java.lang.Integer" ; private static final String LONG_TYPE = "java.lang.Long" ; private static final String SESSION_DEFAULT_TYPE = "SessionDefaultType" ; private static final String TRY_LOCK = "UseTryLock" ; private static final String JMS_MESSAGE_LISTENER = "javax.jms.MessageListener" ; private static final String DEFAULT_MAX_RECONNECTS = "5" ; private static final String GROUP_ADDRESS = "discoveryAddress" ; private static final String DISCOVERY_INITIAL_WAIT_TIMEOUT = "discoveryInitialWaitTimeout" ; private static final String GROUP_PORT = "discoveryPort" ; private static final String REFRESH_TIMEOUT = "discoveryRefreshTimeout" ; private static final Collection < String > JMS_ACTIVATION_CONFIG_PROPERTIES = new HashSet < String > ( ) ; private Injector < Object > transactionManager = new org . jboss . msc . value . InjectedValue < Object > ( ) ; private List < String > connectors ; private String discoveryGroupName ; private List < PooledConnectionFactoryConfigProperties > adapterParams ; private String name ; private Map < String , SocketBinding > socketBindings = new HashMap < String , SocketBinding > ( ) ; private org . jboss . msc . value . InjectedValue < HornetQServer > hornetQService = new org . jboss . msc . value . InjectedValue < HornetQServer > ( ) ; private String jndiName ; private String txSupport ; public PooledConnectionFactoryService ( String name , List < String > connectors , String discoveryGroupName , List < PooledConnectionFactoryConfigProperties > adapterParams , String jndiName , String txSupport ) { } public Void getValue ( ) throws IllegalArgumentException , IllegalStateException { } public void start ( StartContext context ) throws StartException { ServiceTarget serviceTarget = context . getChildTarget ( ) ; try { createService ( serviceTarget , context . getController ( ) . getServiceContainer ( ) ) ; } catch ( Exception e ) { <START_BUG> throw new StartException ( MessagingMessages . MESSAGES . failedToCreate ( "resource<seq2seq4repair_space>adapter" ) , e ) ; <END_BUG> } } private void createService ( ServiceTarget serviceTarget , ServiceContainer container ) throws Exception { } private static IronJacamarImpl createIron ( CommonConnDef common , String txSupport ) { } private static CommonConnDef createConnDef ( String jndiName ) throws ValidateException { } private static Connector15Impl createConnector15 ( ResourceAdapter1516 ra ) { } private ResourceAdapter1516Impl createResourceAdapter15 ( List < ConfigProperty > properties , OutboundResourceAdapter outbound , InboundResourceAdapter inbound ) { } private InboundResourceAdapter createInbound ( ) { } private static OutboundResourceAdapter createOutbound ( ) { } private static XsdString str ( String str ) { } private static ConfigProperty simpleProperty15 ( String name , String type , String value ) { } public void stop ( StopContext context ) { } public Injector < Object > getTransactionManager ( ) { } Injector < SocketBinding > getSocketBindingInjector ( String name ) { } public Injector < HornetQServer > getHornetQService ( ) { } }

Fix:
throw MessagingMessages . MESSAGES . failedToCreate ( e , "resource<seq2seq4repair_space>adapter" ) ;