Adds getComponents() method to Entity