class OlapUnitResourceConverter extends ResourceConverterImpl<OlapUnit, ClientOlapUnit> {

    @Override
    protected ClientOlapUnit resourceSpecificFieldsToClient(ClientOlapUnit client, OlapUnit serverObject,
            ToClientConversionOptions options) {
        client.setMdxQuery(serverObject.getMdxQuery());
        final ClientReferenciableOlapConnection clientOlapConnection = resourceReferenceConverterProvider
                .getConverterForType(ClientReferenciableOlapConnection.class)
                .toClient(serverObject.getOlapClientConnection(), options);
        client.setOlapConnection(clientOlapConnection);
        return client;
    }

}