Added optional throwError parameter for cases when documentation is no found.