public List<String> getUserId(int userId, int uprofile) {

        String queryLISTMSISDN = "";
        List<String> userIdList = new ArrayList();
        if (uprofile == 3) {
            queryLISTMSISDN = "select uemail from user;";
        } else {
            queryLISTMSISDN = "SELECT uemail from user where ownerid='" + userId + "' or userid='" + userId + "' ";
        }
        log.info(queryLISTMSISDN);
        try {
            m_Connection = getDbConnection().getConnection();
            m_Statement = m_Connection.createStatement();
            m_ResultSet = m_Statement.executeQuery(queryLISTMSISDN);

            while (m_ResultSet.next()) {
                userIdList.add(m_ResultSet.getString("uemail"));


            }
        } catch (SQLException e) {
            e.printStackTrace();
        } finally {
            try {
                if (m_ResultSet != null) {
                    m_ResultSet.close();
                }
                if (m_Statement != null) {
                    m_Statement.close();
                }
                if (m_Connection != null) {
                    m_Connection.close();
                }
            } catch (SQLException ex) {
                ex.printStackTrace();
            }
        }
        return userIdList;
    }