static public String SysInfoIsAlreadyConfigured() throws FileNotFoundException, IOException, NamingException, SQLException {
        if (props == null) {
            props = Basics.getConfiguration();
        }
        String line = "0";
        String out = "";
        Context ctx = new InitialContext(); 
        DataSource ds  = (DataSource) ctx.lookup("jdbc/repository"); 
        Connection cn = ds.getConnection();
        PreparedStatement ps = cn.prepareStatement("select decode(key,'base64'),val from info_system where key = encode('MAIN_VERSION','base64') OR key = encode('UPDATE_VERSION','base64') OR key = encode('BUILD_VERSION','base64') OR key = encode('PORTAL_PATH','base64')");
        ResultSet rs = ps.executeQuery();
        while ( rs.next() ) { 
            if ("MAIN_VERSION".equals(rs.getString( 1 ))) {
                out += "\"MAINV\":\"" + rs.getString( 2 ) + "\","; line = "1";
            } else if ("UPDATE_VERSION".equals(rs.getString( 1 ))) {
                out += "\"UPDATEV\":\"" + rs.getString( 2 ) + "\","; line = "1";
            } else if ("BUILD_VERSION".equals(rs.getString( 1 ))) {
                out += "\"BUILDV\":\"" + rs.getString( 2 ) + "\","; line = "1";
            } else if ("PORTAL_PATH".equals(rs.getString( 1 ))) {
                out += "\"PORTALP\":\"" + rs.getString( 2 ) + "\","; line = "1";
            } else {
                line = "0";
            }
        }
        if ( "1".equals(line) ) {
            out = out.substring(0, out.length()-1);
            line += "\"," + out;
        } else {
            line += "\"";
        }
        /*
         * Close Connection
         */
        cn.close();
        return line;
    }