public String getMsg() {
        InfoMessages im = (InfoMessages) Resources.getInstance().getResource("data/info_messages.xml");

        switch (type) {
            case DB_noConnection:
                return im.getDbNoConnection();
            case Signin_badLoginOrPassword:
                return im.getBadLoginOrPassword();
            case Sigiup_userAlreadyExists:
                return im.getUserAlreadyExists();
            case Signup_badUserForm:
                return im.getBadUserForm();
        }

        return null;
    }