class OlapUnitResourceConverter extends ResourceConverterImpl<OlapUnit, ClientOlapUnit> {

    @Override
    protected OlapUnit resourceSpecificFieldsToServer(ClientOlapUnit clientObject, OlapUnit resultToUpdate,
            List<Exception> exceptions, ToServerConversionOptions options) throws IllegalParameterValueException, MandatoryParameterNotFoundException {
        resultToUpdate.setMdxQuery(clientObject.getMdxQuery());
        final ResourceReference serverOlapConnection = resourceReferenceConverterProvider
                .getConverterForType(ClientReferenciableOlapConnection.class)
                .toServer(clientObject.getOlapConnection(), resultToUpdate.getOlapClientConnection(), options);
        resultToUpdate.setOlapClientConnection(serverOlapConnection);
        return resultToUpdate;
    }

}