class XmlaConnectionResourceConverter extends ResourceConverterImpl<XMLAConnection, ClientXmlaConnection> {

    @Override
    protected XMLAConnection resourceSpecificFieldsToServer(ClientXmlaConnection clientObject, XMLAConnection resultToUpdate, List<Exception> exceptions, ToServerConversionOptions options) throws IllegalParameterValueException {
        resultToUpdate.setURI(clientObject.getUrl());
        resultToUpdate.setCatalog(clientObject.getCatalog());
        resultToUpdate.setDataSource(clientObject.getDataSource());
        final String password = clientObject.getPassword();
        if (password != null) {
            // update password if it is not null only
            // null password means "not changed"
            resultToUpdate.setPassword(password);
        }
        resultToUpdate.setUsername(clientObject.getUsername());
        return resultToUpdate;
    }

}