Should this be 
resources.find({_ => _.getName == portsResourceName}) or does this other syntax (pass the predicate in directly) work as well?