Buggy code:
public class BlueprintURLContext implements Context { private static final String BLUEPRINT_NAMESPACE = "blueprint:comp//" ; private Bundle _callersBundle ; private Map < String , Object > _env ; private NameParser _parser = new BlueprintNameParser ( ) ; private BlueprintName _parentName ; private interface ComponentProcessor < T > { T get ( Binding b ) { } } private static class BlueprintComponentNamingEnumeration < T > implements NamingEnumeration < T > { private Binding [ ] blueprintIdToComponentBindings ; private int position = 0 ; private BlueprintURLContext . ComponentProcessor < T > processor ; public BlueprintComponentNamingEnumeration ( Bundle callersBundle , BlueprintURLContext . ComponentProcessor < T > p ) throws ServiceUnavailableException { } @ Override public boolean hasMoreElements ( ) { } @ Override public T nextElement ( ) { } @ Override public T next ( ) throws NamingException { } @ Override public boolean hasMore ( ) throws NamingException { } @ Override public void close ( ) throws NamingException { } } @ SuppressWarnings ( "unchecked" ) public BlueprintURLContext ( Bundle callersBundle , Hashtable < ? , ? > env ) { } private BlueprintURLContext ( Bundle callersBundle , BlueprintName parentName , Map < String , Object > env ) { } @ Override protected void finalize ( ) throws NamingException { } @ Override public Object addToEnvironment ( String propName , Object propVal ) throws NamingException { } @ Override public void bind ( Name n , Object o ) throws NamingException { } @ Override public void bind ( String s , Object o ) throws NamingException { } @ Override public void close ( ) throws NamingException { } @ Override public Name composeName ( Name name , Name prefix ) throws NamingException { } @ Override public String composeName ( String name , String prefix ) throws NamingException { } @ Override public Context createSubcontext ( Name n ) throws NamingException { } @ Override public Context createSubcontext ( String s ) throws NamingException { } @ Override public void destroySubcontext ( Name n ) throws NamingException { } @ Override public void destroySubcontext ( String s ) throws NamingException { } @ Override public Hashtable < ? , ? > getEnvironment ( ) throws NamingException { } @ Override public String getNameInNamespace ( ) throws NamingException { } @ Override public NameParser getNameParser ( Name n ) throws NamingException { } @ Override public NameParser getNameParser ( String s ) throws NamingException { } @ Override public NamingEnumeration < NameClassPair > list ( Name name ) throws NamingException { } @ Override public NamingEnumeration < NameClassPair > list ( String s ) throws NamingException { } @ Override public NamingEnumeration < Binding > listBindings ( Name name ) throws NamingException { } @ Override public NamingEnumeration < Binding > listBindings ( String name ) throws NamingException { } @ Override public Object lookup ( Name name ) throws NamingException , ServiceUnavailableException { } @ Override public Object lookup ( String name ) throws NamingException { } @ Override public Object lookupLink ( Name n ) throws NamingException { } @ Override public Object lookupLink ( String s ) throws NamingException { } @ Override public void rebind ( Name n , Object o ) throws NamingException { } @ Override public void rebind ( String s , Object o ) throws NamingException { } @ Override public Object removeFromEnvironment ( String propName ) throws NamingException { } @ Override public void rename ( Name nOld , Name nNew ) throws NamingException { } @ Override public void rename ( String sOld , String sNew ) throws NamingException { } @ Override public void unbind ( Name n ) throws NamingException { } @ Override public void unbind ( String s ) throws NamingException { } private static ServiceReference findBPCRef ( Bundle b ) { } private static ServiceReference getBlueprintContainerRef ( Bundle b ) throws ServiceUnavailableException { ServiceReference result = BlueprintURLContext . findBPCRef ( b ) ; if ( result == null ) { Semaphore s = new Semaphore ( 0 ) ; AtomicReference < ServiceReference > bpcRef = new AtomicReference < ServiceReference > ( ) ; ServiceTracker st = new ServiceTracker ( b . getBundleContext ( ) , BlueprintContainer . class . getName ( ) , new BlueprintURLContext . BlueprintContainerServiceTrackerCustomizer ( b , s , bpcRef ) ) ; st . open ( ) ; int graceperiod = BlueprintURLContext . getGracePeriod ( b ) ; result = BlueprintURLContext . findBPCRef ( b ) ; if ( ( result == null ) && ( graceperiod >= 0 ) ) { if ( graceperiod == 0 ) { try { s . acquire ( ) ; } catch ( InterruptedException ix ) { } } else { try { s . tryAcquire ( graceperiod , TimeUnit . MILLISECONDS ) ; } catch ( InterruptedException ix ) { } } } result = bpcRef . get ( ) ; st . close ( ) ; } if ( result == null ) { <START_BUG> throw new ServiceUnavailableException ( "The<seq2seq4repair_space>BlueprintContainer<seq2seq4repair_space>service<seq2seq4repair_space>could<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>located" ) ; <END_BUG> } return result ; } static final Pattern graceP = Pattern . compile ( ".*;\\s*blueprint.graceperiod\\s*:=\\s*\"?([A-Za-z]+).*" ) ; static final Pattern timeoutP = Pattern . compile ( ".*;\\s*blueprint.timeout\\s*:=\\s*\"?([0-9]+).*" ) ; public static int getGracePeriod ( Bundle b ) { } private static class BlueprintContainerServiceTrackerCustomizer implements ServiceTrackerCustomizer { Bundle bundleToFindBPCServiceIn = null ; Semaphore semaphore ; AtomicReference < ServiceReference > atomicRef = null ; public BlueprintContainerServiceTrackerCustomizer ( Bundle b , Semaphore s , AtomicReference < ServiceReference > aref ) { } @ Override public Object addingService ( ServiceReference reference ) { } @ Override public void modifiedService ( ServiceReference reference , Object service ) { } @ Override public void removedService ( ServiceReference reference , Object service ) { } } }

Fix:
throw new ServiceUnavailableException ( ( ( ( ( "The<seq2seq4repair_space>BlueprintContainer<seq2seq4repair_space>service<seq2seq4repair_space>for<seq2seq4repair_space>bundle:<seq2seq4repair_space>" + ( b . getSymbolicName ( ) ) ) + '_' ) + ( b . getVersion ( ) ) ) + "<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>located" ) ) ;