[4.2] Implemented "compiles" method for service providers.

See #4214 for complete conversation reference.