'Constructor.
Args:
capabilities: list of strings
methods: list of strings'

def __init__(self, package, capabilities=None, methods=None, stub_map=apiproxy_stub_map):

    if (capabilities is None):
        capabilities = []
    if (methods is None):
        methods = []
    self._package = package
    self._capabilities = (['*'] + capabilities)
    self._methods = methods
    self._stub_map = stub_map
