private String getDocument(String resourceName, String... images)
    {
        try
        {
            InputStream is = GuiUtil.getResource(resourceName);
            InputStreamReader isr = new InputStreamReader(is, "UTF-8");
            BufferedReader br = new BufferedReader(isr);
            
            StringBuilder builder = new StringBuilder();
            String line;
            
            while ((line = br.readLine()) != null)
            {
                builder.append(line);
            }
            
            br.close();
            
            if (images == null)
            {
                return builder.toString();
            }
            else
            {
                return String.format(builder.toString(), (Object[]) images);
            }
        }
        catch (Exception ex)
        {
            ex.printStackTrace();
        }
        
        return null;
    }