code: public static String getClassName(String sourceCode) {
  		int index = sourceCode.indexOf(" class ");
  		int lastIndex = sourceCode.indexOf("{");
  		String className = sourceCode.substring(index + 6, lastIndex).trim();
  		return className;
  	}
docs: Gets the class name.
  
  @param sourceCode the source code
  @return the class name