extracted an interface for writing of java doc