Buggy code:
public class RaOperationUtil { public static ModifiableResourceAdapter buildResourceAdaptersObject ( final OperationContext context , ModelNode operation ) throws OperationFailedException { } public static ModifiableConnDef buildConnectionDefinitionObject ( final OperationContext context , final ModelNode operation , final String poolName , final boolean isXa ) throws OperationFailedException , ValidateException { } public static ModifiableAdminObject buildAdminObjects ( final OperationContext operationContext , ModelNode operation , final String poolName ) throws OperationFailedException , ValidateException { } private static Long getLongIfSetOrGetDefault ( final OperationContext context , final ModelNode dataSourceNode , final SimpleAttributeDefinition key , final Long defaultValue ) throws OperationFailedException { } private static Integer getIntIfSetOrGetDefault ( final OperationContext context , final ModelNode dataSourceNode , final SimpleAttributeDefinition key , final Integer defaultValue ) throws OperationFailedException { } private static Boolean getBooleanIfSetOrGetDefault ( final OperationContext context , final ModelNode dataSourceNode , final SimpleAttributeDefinition key , final Boolean defaultValue ) throws OperationFailedException { } private static String getResolvedStringIfSetOrGetDefault ( final OperationContext context , final ModelNode dataSourceNode , final String key , final String defaultValue ) throws OperationFailedException { } private static Extension extractExtension ( final OperationContext operationContext , final ModelNode node , final String className , final String propertyName ) throws OperationFailedException , ValidateException { } public static void deactivateIfActive ( OperationContext context , String raName ) throws OperationFailedException { } public static void activate ( OperationContext context , String raName , String rarName ) throws OperationFailedException { ServiceRegistry registry = context . getServiceRegistry ( true ) ; if ( rarName . contains ( RA_SERVICE_NAME_SEPARATOR ) ) { rarName = rarName . substring ( 0 , rarName . indexOf ( RA_SERVICE_NAME_SEPARATOR ) ) ; } final ServiceController < ? > inactiveRaController = registry . getService ( INACTIVE_RESOURCE_ADAPTER_SERVICE . append ( rarName ) ) ; if ( inactiveRaController == null ) { throw new OperationFailedException ( "rar<seq2seq4repair_space>not<seq2seq4repair_space>yet<seq2seq4repair_space>deployed" ) ; } InactiveResourceAdapterDeploymentService . InactiveResourceAdapterDeployment inactive = ( ( InactiveResourceAdapterDeploymentService . InactiveResourceAdapterDeployment ) ( inactiveRaController . getValue ( ) ) ) ; final ServiceController < ? > RaxmlController = registry . getService ( ServiceName . of ( RA_SERVICE , raName ) ) ; ResourceAdapter raxml = ( ( ResourceAdapter ) ( RaxmlController . getValue ( ) ) ) ; <START_BUG> RaServicesFactory . createDeploymentService ( inactive . getRegistration ( ) , inactive . getConnectorXmlDescriptor ( ) , inactive . getModule ( ) , inactive . getServiceTarget ( ) , inactive . getDeployment ( ) , inactive . getDeployment ( ) , raxml ) ; <END_BUG> } }

Fix:
RaServicesFactory . createDeploymentService ( inactive . getRegistration ( ) , inactive . getConnectorXmlDescriptor ( ) , inactive . getModule ( ) , inactive . getServiceTarget ( ) , inactive . getDeployment ( ) , inactive . getDeployment ( ) , raxml , inactive . getResource ( ) ) ;