Buggy code:
public class OBRAriesResolver implements AriesApplicationResolver { private static Logger log = LoggerFactory . getLogger ( OBRAriesResolver . class ) ; private final RepositoryAdmin repositoryAdmin ; private boolean returnOptionalResources = true ; private PlatformRepository platformRepository ; private ModellingManager modellingManager ; private ModellingHelper modellingHelper ; public void setModellingManager ( ModellingManager m ) { } public void setModellingHelper ( ModellingHelper mh ) { } public PlatformRepository getPlatformRepository ( ) { } public RepositoryAdmin getRepositoryAdmin ( ) { } public void setPlatformRepository ( PlatformRepository platformRepository ) { } public OBRAriesResolver ( RepositoryAdmin repositoryAdmin ) { } public void setReturnOptionalResources ( boolean optional ) { } public boolean getReturnOptionalResources ( ) { } @ Override public Collection < ModelledResource > resolve ( String appName , String appVersion , Collection < ModelledResource > byValueBundles , Collection < Content > inputs ) throws ResolverException { OBRAriesResolver . log . debug ( LOG_ENTRY , "resolve" , new Object [ ] { appName , appVersion , byValueBundles , inputs } ) ; Collection < ImportedBundle > importedBundles = toImportedBundle ( inputs ) ; Collection < ModelledResource > toReturn = new ArrayList < ModelledResource > ( ) ; Resolver obrResolver = getConfiguredObrResolver ( appName , appVersion , byValueBundles ) ; obrResolver . add ( createApplicationResource ( appName , appVersion , importedBundles ) ) ; if ( obrResolver . resolve ( ) ) { List < Resource > requiredResources = retrieveRequiredResources ( obrResolver ) ; if ( requiredResources == null ) { OBRAriesResolver . log . debug ( "resolver.getRequiredResources()<seq2seq4repair_space>returned<seq2seq4repair_space>null" ) ; } else { for ( Resource r : requiredResources ) { NameValueMap < String , String > attribs = new NameValueMap < String , String > ( ) ; attribs . put ( Constants . VERSION_ATTRIBUTE , ( ( ( ( "[" + ( r . getVersion ( ) ) ) + ',' ) + ( r . getVersion ( ) ) ) + "]" ) ) ; ModelledResource modelledResourceForThisMatch = null ; if ( ( r . getSymbolicName ( ) ) != null ) { try { modelledResourceForThisMatch = new org . apache . aries . application . resolver . obr . impl . ModelledBundleResource ( r , modellingManager , modellingHelper ) ; } catch ( InvalidAttributeException iax ) { ResolverException re = new ResolverException ( ( "Internal<seq2seq4repair_space>error<seq2seq4repair_space>occurred:<seq2seq4repair_space>" + ( iax . toString ( ) ) ) ) ; OBRAriesResolver . log . debug ( LOG_EXIT , "resolve" , re ) ; throw re ; } toReturn . add ( modelledResourceForThisMatch ) ; } } } OBRAriesResolver . log . debug ( LOG_EXIT , "resolve" , toReturn ) ; return toReturn ; } else { Reason [ ] reasons = obrResolver . getUnsatisfiedRequirements ( ) ; Map < String , Set < String > > refinedReqs = refineUnsatisfiedRequirements ( obrResolver , reasons ) ; StringBuffer reqList = new StringBuffer ( ) ; List < String > unsatisfiedRequirements = new LinkedList < String > ( ) ; for ( Map . Entry < String , Set < String > > filterEntry : refinedReqs . entrySet ( ) ) { <START_BUG> OBRAriesResolver . log . debug ( ( ( ( "unable<seq2seq4repair_space>to<seq2seq4repair_space>satisfied<seq2seq4repair_space>the<seq2seq4repair_space>filter<seq2seq4repair_space>,<seq2seq4repair_space>filter<seq2seq4repair_space>=<seq2seq4repair_space>" + ( filterEntry . getKey ( ) ) ) + "required<seq2seq4repair_space>by<seq2seq4repair_space>" ) + ( filterEntry . getValue ( ) ) ) ) ; <END_BUG> String reason = extractConsumableMessageInfo ( filterEntry . getKey ( ) , filterEntry . getValue ( ) ) ; reqList . append ( '\n' ) ; reqList . append ( reason ) ; unsatisfiedRequirements . add ( reason ) ; } ResolverException re = new ResolverException ( MessageUtil . getMessage ( "RESOLVER_UNABLE_TO_RESOLVE" , new Object [ ] { appName , reqList } ) ) ; re . setUnsatisfiedRequirements ( unsatisfiedRequirements ) ; OBRAriesResolver . log . debug ( LOG_EXIT , "resolve" , re ) ; throw re ; } } private Resolver getConfiguredObrResolver ( String appName , String appVersion , Collection < ModelledResource > byValueBundles ) throws ResolverException { } @ Deprecated @ Override public Set < BundleInfo > resolve ( AriesApplication app , ResolveConstraint ... constraints ) throws ResolverException { } @ Override public BundleInfo getBundleInfo ( String bundleSymbolicName , Version bundleVersion ) { } private void addPlatformRepositories ( Resolver obrResolver , String appName ) { } private Resource createApplicationResource ( String appName , Version appVersion , List < Content > appContent ) { } private Resource createApplicationResource ( String appName , String appVersion , Collection < ImportedBundle > inputs ) { } private BundleInfo toBundleInfo ( Resource resource , boolean optional ) { } protected List < Resource > retrieveRequiredResources ( Resolver resolver ) { } protected List < Resource > mergeResource ( Resolver resolver , Resource r , List < Resource > list ) { } protected boolean satisfiesAll ( Resource res , Reason [ ] reasons ) { } private static final Set < String > SPECIAL_FILTER_ATTRS = Collections . unmodifiableSet ( new HashSet < String > ( Arrays . asList ( OBR_PACKAGE , OBR_SYMBOLIC_NAME , OBR_SERVICE , Constants . VERSION_ATTRIBUTE ) ) ) ; private String extractConsumableMessageInfo ( String filter , Set < String > bundlesFailing ) { } private Map < String , Set < String > > refineUnsatisfiedRequirements ( Resolver resolver , Reason [ ] reasons ) { } private Collection < ImportedBundle > toImportedBundle ( Collection < Content > content ) throws ResolverException { } private Collection < ModelledResource > toModelledResource ( Collection < BundleInfo > bundleInfos ) throws ResolverException { } private Repository getLocalRepository ( RepositoryAdmin admin ) { } private boolean excludeLocalRuntime ( ) { } }

Fix:
OBRAriesResolver . log . debug ( ( ( ( "unable<seq2seq4repair_space>to<seq2seq4repair_space>satisfy<seq2seq4repair_space>the<seq2seq4repair_space>filter<seq2seq4repair_space>,<seq2seq4repair_space>filter<seq2seq4repair_space>=<seq2seq4repair_space>" + ( filterEntry . getKey ( ) ) ) + "required<seq2seq4repair_space>by<seq2seq4repair_space>" ) + ( filterEntry . getValue ( ) ) ) ) ;