Refactored ComponentMetadataHandler.eachComponent() to all()

+review REVIEW-5218