Buggy code:
public class RegistryManager { private static final Log log = LogFactory . getLog ( RegistryManager . class ) ; private static Registry registryService ; private static RegistryManager registryManager ; private RegistryManager ( ) { } public static RegistryManager getInstance ( ) { } private void persist ( Object dataObj , String resourcePath ) throws AutoScalerException { PrivilegedCarbonContext ctx = PrivilegedCarbonContext . getThreadLocalCarbonContext ( ) ; ctx . setTenantId ( SUPER_TENANT_ID ) ; ctx . setTenantDomain ( SUPER_TENANT_DOMAIN_NAME ) ; try { RegistryManager . registryService . beginTransaction ( ) ; Resource nodeResource = RegistryManager . registryService . newResource ( ) ; nodeResource . setContent ( Serializer . serializeToByteArray ( dataObj ) ) ; RegistryManager . registryService . put ( resourcePath , nodeResource ) ; RegistryManager . registryService . commitTransaction ( ) ; } catch ( Exception e ) { try { RegistryManager . registryService . rollbackTransaction ( ) ; } catch ( RegistryException e1 ) { if ( RegistryManager . log . isErrorEnabled ( ) ) { <START_BUG> RegistryManager . log . error ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>rollback<seq2seq4repair_space>transaction" , e ) ; <END_BUG> } } throw new AutoScalerException ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>persist<seq2seq4repair_space>data<seq2seq4repair_space>in<seq2seq4repair_space>registry" , e ) ; } } public void persistAutoscalerPolicy ( AutoscalePolicy autoscalePolicy ) { } public void persistDeploymentPolicy ( DeploymentPolicy deploymentPolicy ) { } public void persistNetworkPartition ( NetworkPartition networkPartition ) { } private String [ ] getNetworkPartitionResourcePaths ( ) { } public List < NetworkPartition > getNetworkPartitions ( ) { } public NetworkPartition getNetworkPartition ( String networkPartitionId ) { } private NetworkPartition getNetworkPartitionByResourcePath ( String resourcePath ) { } public void removeNetworkPartition ( String networkPartitionId ) { } public void persistApplication ( Application application ) { } public String [ ] getApplicationResourcePaths ( ) { } public Application getApplication ( String applicationResourcePath ) { } public void removeApplication ( String applicationId ) { } public void persistApplicationContext ( ApplicationContext applicationContext ) { } public String [ ] getApplicationContextResourcePaths ( ) { } public ApplicationContext getApplicationContext ( String applicationId ) { } public ApplicationContext getApplicationContextByResourcePath ( String resourcePath ) { } public void removeApplicationContext ( String applicationId ) { } public void persistServiceGroup ( ServiceGroup servicegroup ) { } public boolean serviceGroupExist ( String serviceGroupName ) { } private Object retrieve ( String resourcePath ) { } private boolean resourceExist ( String resourcePath ) { } public List < Partition > retrievePartitions ( ) { } public List < AutoscalePolicy > retrieveASPolicies ( ) { } public List < DeploymentPolicy > retrieveDeploymentPolicies ( ) { } public ServiceGroup getServiceGroup ( String name ) throws Exception { } public ServiceGroup [ ] getServiceGroups ( ) { } public void removeServiceGroup ( String name ) throws RegistryException { } public void removeAutoscalerPolicy ( String policyID ) { } public void removeDeploymentPolicy ( DeploymentPolicy depPolicy ) { } private void delete ( String resourcePath ) { } }

Fix:
RegistryManager . log . error ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>rollback<seq2seq4repair_space>transaction" , e1 ) ;