Buggy code:
public abstract class AbstractResourceAdapterDeploymentService { protected ResourceAdapterDeployment value ; protected final InjectedValue < AS7MetadataRepository > mdr = new InjectedValue < AS7MetadataRepository > ( ) ; protected final InjectedValue < ResourceAdapterRepository > raRepository = new InjectedValue < ResourceAdapterRepository > ( ) ; protected final InjectedValue < ResourceAdapterDeploymentRegistry > registry = new InjectedValue < ResourceAdapterDeploymentRegistry > ( ) ; protected final InjectedValue < ManagementRepository > managementRepository = new InjectedValue < ManagementRepository > ( ) ; protected final InjectedValue < JcaSubsystemConfiguration > config = new InjectedValue < JcaSubsystemConfiguration > ( ) ; protected final InjectedValue < TransactionIntegration > txInt = new InjectedValue < TransactionIntegration > ( ) ; protected final InjectedValue < SubjectFactory > subjectFactory = new InjectedValue < SubjectFactory > ( ) ; protected final InjectedValue < CachedConnectionManager > ccmValue = new InjectedValue < CachedConnectionManager > ( ) ; public ResourceAdapterDeployment getValue ( ) { } public void unregisterAll ( String deploymentName ) { } public Injector < AS7MetadataRepository > getMdrInjector ( ) { } public Injector < ResourceAdapterRepository > getRaRepositoryInjector ( ) { } public Injector < ManagementRepository > getManagementRepositoryInjector ( ) { } public Injector < ResourceAdapterDeploymentRegistry > getRegistryInjector ( ) { } public InjectedValue < JcaSubsystemConfiguration > getConfig ( ) { } public InjectedValue < TransactionIntegration > getTxIntegration ( ) { } public Injector < TransactionIntegration > getTxIntegrationInjector ( ) { } public Injector < JcaSubsystemConfiguration > getConfigInjector ( ) { } public Injector < SubjectFactory > getSubjectFactoryInjector ( ) { } public Injector < CachedConnectionManager > getCcmInjector ( ) { } protected abstract class AbstractAS7RaDeployer extends AbstractResourceAdapterDeployer { protected final ServiceTarget serviceTarget ; protected final URL url ; protected final String deploymentName ; protected final File root ; protected final ClassLoader cl ; protected final Connector cmd ; protected final ServiceName deploymentServiceName ; protected AbstractAS7RaDeployer ( ServiceTarget serviceTarget , URL url , String deploymentName , File root , ClassLoader cl , Connector cmd , final ServiceName deploymentServiceName ) { } public abstract CommonDeployment doDeploy ( ) throws Throwable { } @ Override public String [ ] bindConnectionFactory ( URL url , String deployment , Object cf ) throws Throwable { } @ Override public String [ ] bindConnectionFactory ( URL url , String deployment , Object cf , final String jndi ) throws Throwable { } @ Override public String [ ] bindAdminObject ( URL url , String deployment , Object ao ) throws Throwable { } @ Override public String [ ] bindAdminObject ( URL url , String deployment , Object ao , final String jndi ) throws Throwable { } @ Override protected abstract boolean checkActivation ( Connector cmd , IronJacamar ijmd ) { } @ Override protected boolean checkConfigurationIsValid ( ) { } @ Override protected PrintWriter getLogPrintWriter ( ) { <START_BUG> return new PrintWriter ( System . out ) ; <END_BUG> } @ Override protected File getReportDirectory ( ) { } @ Override protected TransactionManager getTransactionManager ( ) { } @ Override public Object initAndInject ( String className , List < ? extends ConfigProperty > configs , ClassLoader cl ) throws DeployException { } @ Override protected void registerResourceAdapterToMDR ( URL url , File file , Connector connector , IronJacamar ij ) throws AlreadyExistsException { } @ Override protected String registerResourceAdapterToResourceAdapterRepository ( ResourceAdapter instance ) { } @ Override protected SubjectFactory getSubjectFactory ( String securityDomain ) throws DeployException { } @ Override protected TransactionIntegration getTransactionIntegration ( ) { } @ Override protected CachedConnectionManager getCachedConnectionManager ( ) { } @ Override protected String buildJndiName ( String rawJndiName , Boolean javaContext ) { } @ Override protected BeanValidation getBeanValidation ( ) { } } }

Fix:
return new PrintWriter ( System . out , true ) ;