Adding new JavaDoc with pattern information