code: public static CompilationUnit parse(String javaSource) throws IOException, ParseException {
          ByteArrayInputStream inputStream = new ByteArrayInputStream(javaSource.getBytes("UTF-8"));
          return parse(inputStream);
      }
docs: Parses a UTF-8 encoded string as java source.
  
  @param javaSource
  @return
  @throws IOException
  @throws ParseException