@@ -0,0 +1,3320 @@
+package framework;%0A%0Aimport common.JSONReader;%0A%0A/**%0A * Created with IntelliJ IDEA.%0A * User: jhasmanyquiroz%0A * Date: 12/8/15%0A * Time: 3:06 PM%0A * To change this template use File %7C Settings %7C File Templates.%0A */%0Apublic class CredentialsManager %7B%0A    private JSONReader jsonObjectMain;%0A    private static  CredentialsManager instance = null;%0A    private static String envId;%0A%0A    private static String adminURL;%0A    private static String tabletURL;%0A    private static String roomManagerService;%0A    private static String adminUserName;%0A    private static String adminUserPassword;%0A    private static String tabletUserName;%0A    private static String tabletUserPassword;%0A    private static String exchangeUserName;%0A    private static String exchangeUserPassword;%0A    private static String apiServer;%0A%0A    protected CredentialsManager() %7B%0A        initialize();%0A    %7D%0A%0A    /**%0A     * Return the instance of CredentialsManager.%0A     */%0A    public static CredentialsManager getInstance() %7B%0A        if(instance == null) %7B%0A            instance = new CredentialsManager();%0A        %7D%0A        return instance;%0A    %7D%0A%0A    private void initialize() %7B%0A        String filePath = System.getProperty(%22user.dir%22)+%22%5C%5Cenvironment.json%22;%0A        jsonObjectMain = new JSONReader(filePath);%0A        String environmentId = System.getProperty(%22envId%22);%0A        if (environmentId == null %7C%7C environmentId.isEmpty())%7B%0A            envId = %22RM02%22;%0A        %7D else %7B%0A            envId = environmentId;%0A        %7D%0A%0A        adminURL = jsonObjectMain.getKeyValue(%22Environments%22, %22id%22, envId, %22admin URL%22);%0A        tabletURL = jsonObjectMain.getKeyValue(%22Environments%22, %22id%22, envId, %22tablet URL%22);%0A        roomManagerService = jsonObjectMain.getKeyValue(%22Environments%22, %22id%22, envId, %22room manager service%22);%0A        adminUserName = jsonObjectMain.getKeyValue(%22Environments%22, %22id%22, envId, %22admin user%22, %22name%22);%0A        adminUserPassword = jsonObjectMain.getKeyValue(%22Environments%22, %22id%22, envId, %22admin user%22, %22password%22);%0A        tabletUserName = jsonObjectMain.getKeyValue(%22Environments%22, %22id%22, envId, %22tablet user%22, %22name%22);%0A        tabletUserPassword = jsonObjectMain.getKeyValue(%22Environments%22, %22id%22, envId, %22tablet user%22, %22password%22);%0A        exchangeUserName = jsonObjectMain.getKeyValue(%22Environments%22, %22id%22, envId, %22exchange user%22, %22name%22);%0A        exchangeUserPassword = jsonObjectMain.getKeyValue(%22Environments%22, %22id%22, envId, %22exchange user%22, %22password%22);%0A        apiServer = jsonObjectMain.getKeyValue(%22Environments%22, %22id%22, envId, %22api%22, %22server%22);%0A%0A    %7D%0A%0A    public String getBaseAdminURL() %7B%0A        return adminURL;%0A    %7D%0A%0A    public String getBaseTabletURL() %7B%0A        return tabletURL;%0A    %7D%0A%0A    public String getRoomManagerService() %7B%0A        return roomManagerService;%0A    %7D%0A%0A    public String getAdminUserName() %7B%0A        return adminUserName;%0A    %7D%0A%0A    public String getAdminUserPassword() %7B%0A        return adminUserPassword;%0A    %7D%0A%0A    public String getTabletUserName() %7B%0A        return tabletUserName;%0A    %7D%0A%0A    public String getTabletUserPassword() %7B%0A        return tabletUserPassword;%0A    %7D%0A%0A    public String getExchangeUserName() %7B%0A        return exchangeUserName;%0A    %7D%0A%0A    public String getExchangeUserPassword() %7B%0A        return exchangeUserPassword;%0A    %7D%0A%0A    public String getApiServer() %7B%0A        return apiServer;%0A    %7D%0A%7D

Create the CreadentialsManager file