code: public static String getClassSummary(Class<?> klass, ClassLoader classLoader) {
  		URL resource = classLoader.getResource(JAVADOC_PREFIX + klass.getCanonicalName());
  		if (resource == null) {
  			return null;
  		}
  		try {
  			try (@SuppressWarnings("resource")
        BufferedReader reader = new BufferedReader(new InputStreamReader(resource.openStream(), "UTF-8"))) {
  				StringBuilder builder = new StringBuilder();
  				String line = reader.readLine();
  				while (line != null) {
  					int dotIndex = line.indexOf('.');
  					if (dotIndex == -1) {
  						builder.append(line);
  					} else {
  						builder.append(line.subSequence(0, dotIndex));
  						return builder.toString().trim();
  					}
  					line = reader.readLine();
  				}
  				return builder.toString().trim();
  			} catch (FileNotFoundException e) {
  				// catch this just in case some compiler actually throws that
  				return null;
  			}
  		} catch (IOException e) {
  			throw new RuntimeException("ClassIndex: Cannot read Javadoc index", e);
  		}
  	}
docs: Returns the Javadoc summary for given class.
  <p>
  Javadoc summary is the first sentence of a Javadoc.
  </p>
  <p>
  You need to use {@link IndexSubclasses} or {@link IndexAnnotated} with {@link IndexAnnotated#storeJavadoc()}
  set to true.
  </p>
  
  @param klass       class to retrieve summary for
  @param classLoader classloader for loading classes
  @return summary for given class, or null if it does not exists
  @see <a href="http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html#writingdoccomments">Writing doc comments</a>