Added extraction of service namespace from service metadata.