Buggy code:
@ Component @ Provides @ Instantiate public class RabbitmqDirectoryServiceImpl implements RabbitmqDirectoryService { private static final Logger log = LoggerFactory . getLogger ( RabbitmqDirectoryServiceImpl . class ) ; private static final String RABBITMQ_DIRECTORY_SERVICE = "Ariane<seq2seq4repair_space>RabbitMQ<seq2seq4repair_space>Plugin<seq2seq4repair_space>Directory<seq2seq4repair_space>Service" ; @ Validate public void validate ( ) throws Exception { } @ Invalidate public void invalidate ( ) { } @ Override public void addNode ( RabbitmqNode node ) { } @ Override public void addCluster ( RabbitmqCluster cluster ) { } @ Override public HashSet < RabbitmqNode > getNodesList ( ) { } @ Override public HashSet < RabbitmqCluster > getClustersList ( ) { } @ Override public void delNode ( RabbitmqNode node ) { } @ Override public void delCluster ( RabbitmqCluster cluster ) { } @ Override public void updateNode ( RabbitmqNode node ) { } @ Override public void updateCluster ( RabbitmqCluster cluster ) { } private HashMap < String , Object > getLocationPropertiesFromOSI ( OSInstance osInstance ) { } private HashMap < String , Object > getTeamPropertiesFromTeam ( Team team ) { } private void putLocationAndTeamPropertiesToRabbitmqNodes ( RabbitmqCluster cluster ) { } @ Override public RabbitmqCluster getClusterFromNode ( RabbitmqNode node ) { } @ Override public RabbitmqCluster refreshRabbitmqCluster ( Long clusterID ) { } public Set < RabbitmqNode > getNodesFromCluster ( Long clusterID ) { } @ Override public HashMap < String , Object > getRemoteClientContainerProperties ( String osiName , String teamName ) { HashMap < String , Object > ret = new HashMap < String , Object > ( ) ; EntityManager em = RabbitmqDirectoryBootstrap . getDirectoryJPAProvider ( ) . createEM ( ) ; CriteriaBuilder builder = em . getCriteriaBuilder ( ) ; CriteriaQuery < OSInstance > osicc = builder . createQuery ( OSInstance . class ) ; Root < OSInstance > osiccRoot = osicc . from ( OSInstance . class ) ; osicc . select ( osiccRoot ) . where ( builder . equal ( osiccRoot . < String > get ( "name" ) , osiName ) ) ; TypedQuery < OSInstance > osiccQuery = em . createQuery ( osicc ) ; OSInstance osInstance = null ; try { osInstance = osiccQuery . getSingleResult ( ) ; ret . putAll ( getLocationPropertiesFromOSI ( osInstance ) ) ; } catch ( NoResultException e ) { RabbitmqDirectoryServiceImpl . log . error ( "unable<seq2seq4repair_space>to<seq2seq4repair_space>retrieve<seq2seq4repair_space>OS<seq2seq4repair_space>instance<seq2seq4repair_space>{}<seq2seq4repair_space>from<seq2seq4repair_space>Directory<seq2seq4repair_space>DB!" , osiName ) ; } catch ( Exception e ) { throw e ; } CriteriaQuery < Team > teamcc = builder . createQuery ( Team . class ) ; Root < Team > teamccRoot = teamcc . from ( Team . class ) ; teamcc . select ( teamccRoot ) . where ( builder . equal ( teamccRoot . < String > get ( "name" ) , teamName ) ) ; TypedQuery < Team > teamccQuery = em . createQuery ( teamcc ) ; Team team = null ; try { team = teamccQuery . getSingleResult ( ) ; ret . putAll ( getTeamPropertiesFromTeam ( team ) ) ; } catch ( NoResultException e ) { <START_BUG> RabbitmqDirectoryServiceImpl . log . error ( "unable<seq2seq4repair_space>to<seq2seq4repair_space>retrieve<seq2seq4repair_space>OS<seq2seq4repair_space>instance<seq2seq4repair_space>{}<seq2seq4repair_space>from<seq2seq4repair_space>Directory<seq2seq4repair_space>DB!" , teamName ) ; <END_BUG> } catch ( Exception e ) { throw e ; } em . close ( ) ; return ret ; } No newline ; at end ; of file ; }

Fix:
RabbitmqDirectoryServiceImpl . log . error ( "unable<seq2seq4repair_space>to<seq2seq4repair_space>retrieve<seq2seq4repair_space>team<seq2seq4repair_space>{}<seq2seq4repair_space>from<seq2seq4repair_space>Directory<seq2seq4repair_space>DB!" , teamName ) ;