Add apply method that takes credentials to the Emr object.