sample: AMD-like api to get required services
whitespace. ignore.
implementation: AMD-like api to get required services