I'm not sure I'm understanding the comment - it's a helper method defined later in the file here: https://github.com/crowbar/barclamp-crowbar/pull/455/files#L0R236

Since the API allows either name or ID to be passed in, the method checks for both. This also removes a BDD failure caused by find not understanding :action parameter.