public Document removeDocument ( String key ) throws PrintingException { if ( documentMap . containsKey ( key ) ) { return documentMap . remove ( key ) ; } else { throw new PrintingException ( PrintingException . DOCUMENT_NOT_FOUND , key ) ; } }
Gets a document from the service .