class DocumentServiceImpl extends RemoteServiceServlet implements DocumentService {

	@Override
	public GUIDocument getById(long docId) throws ServerException {
		Session session = ServiceUtil.validateSession(getThreadLocalRequest());
		try {
			GUIDocument doc = getDocument(session, docId);
			return doc;
		} catch (Throwable t) {
			return (GUIDocument) ServiceUtil.throwServerException(session, log, t);
		}
	}

}