/*
 * Copyright (c) 2017, WSO2 Inc. (http://wso2.com) All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.wso2.carbon.multitenancy.application;

import org.wso2.carbon.multitenancy.deployment.service.DeploymentService;
import org.wso2.carbon.multitenancy.tenant.service.TenantService;
import org.wso2.msf4j.MicroservicesRunner;

/**
 * Multitenancy services application class.
 */
public class Application {

    public static void main(String[] args) {
        new MicroservicesRunner()
                .deploy(new DeploymentService())
                .deploy(new TenantService())
                .start();
    }
}

@@ -792,331 +792,1375 @@
 ncy.
-tenant.service.TenantService;%0Aimport org.wso2.msf4j.MicroservicesRunner;%0A%0A/**%0A * Multitenancy services application class.%0A */%0Apublic class Application %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        new MicroservicesRunner()%0A                .deploy(new DeploymentService())%0A                .deploy(new TenantService
+deployment.service.exceptions.DeploymentNotFoundMapper;%0Aimport org.wso2.carbon.multitenancy.tenant.service.TenantService;%0Aimport org.wso2.carbon.multitenancy.tenant.service.exceptions.BadRequestMapper;%0Aimport org.wso2.carbon.multitenancy.tenant.service.exceptions.DeploymentEnvironmentMapper;%0Aimport org.wso2.carbon.multitenancy.tenant.service.exceptions.TenantCreationFailedMapper;%0Aimport org.wso2.carbon.multitenancy.tenant.service.exceptions.TenantNotFoundMapper;%0Aimport org.wso2.msf4j.MicroservicesRunner;%0A%0A/**%0A * Multitenancy services application class.%0A */%0Apublic class Application %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        new MicroservicesRunner()%0A                .deploy(new DeploymentService())%0A                .deploy(new TenantService())%0A                .addExceptionMapper(new BadRequestMapper())%0A                .addExceptionMapper(new TenantCreationFailedMapper())%0A                .addExceptionMapper(new TenantNotFoundMapper())%0A                .addExceptionMapper(new DeploymentEnvironmentMapper())%0A                .addExceptionMapper(new org.wso2.carbon.multitenancy.deployment.service.exceptions.BadRequestMapper())%0A                .addExceptionMapper(%0A                        new org.wso2.carbon.multitenancy.deployment.service.exceptions.DeploymentEnvironmentMapper())%0A                .addExceptionMapper(new DeploymentNotFoundMapper
 ())%0A

Add exception mappers to the application