service.external.riksdagen/src/main/java/com/hack23/cia/service/external/riksdagen/impl/RiksdagenDocumentApiImpl.java
@Override
	public DocumentContentData getDocumentContent(final String id) throws DataFailureException {
		try {
			return new DocumentContentData().withId(id)
					.withContent(xmlAgent.retriveContent(DOCUMENT_CONTENT.replace(DOC_ID_KEY, id)));
		} catch (final XmlAgentException e) {
			LOGGER.warn(PROBLEM_GETTING_DOCUMENT_CONTENT_FOR_ID_S_FROM_DATA_RIKSDAGEN_SE, id);
			throw new DataFailureException(e);
		}
	}
@Override
	public DocumentContentData getDocumentContent(final String id) throws DataFailureException {
		try {
			return new DocumentContentData().withId(id)
					.withContent(xmlAgent.retriveContent(DOCUMENT_CONTENT.replace(DOC_ID_KEY, id)));
		} catch (final XmlAgentException e) {
			LOGGER.warn(PROBLEM_GETTING_DOCUMENT_CONTENT_FOR_ID_S_FROM_DATA_RIKSDAGEN_SE, id);
			throw new DataFailureException(e);
		}
	}
@ Override public DocumentContentData getDocumentContent ( final String id ) throws DataFailureException { try { return new DocumentContentData ( ) . withId ( id ) . withContent ( xmlAgent . retriveContent ( DOCUMENT_CONTENT . replace ( DOC_ID_KEY , id ) ) ) ; } catch ( final XmlAgentException e ) { LOGGER . warn ( PROBLEM_GETTING_DOCUMENT_CONTENT_FOR_ID_S_FROM_DATA_RIKSDAGEN_SE , id ) ; throw new DataFailureException ( e ) ; } }
/* (non-Javadoc)
@see com.hack23.cia.service.external.riksdagen.api.RiksdagenDocumentApi#getDocumentContent(java.lang.String)
/ * ( non - Javadoc )