code: public static String readFromResource(String resource) throws IOException {
  
          InputStream in = getResourceAsStream(resource);
          if (in == null) {
              return null;
          }
          try {
              return read(in);
          } finally {
              closeQuietly(in);
          }
      }
docs: <p>readFromResource.</p>
  
  @param resource a {@link java.lang.String} object.
  @return a {@link java.lang.String} object.
  @throws java.io.IOException if any.