class ListOfValuesResourceConverter extends ResourceConverterImpl<ListOfValues, ClientListOfValues> {

    @Override
    protected ClientListOfValues resourceSpecificFieldsToClient(ClientListOfValues client, ListOfValues serverObject, ToClientConversionOptions options) {
        final ListOfValuesItem[] values = serverObject.getValues();
        if(values != null && values.length > 0){
            List<ClientListOfValuesItem> clientItems = new ArrayList<ClientListOfValuesItem>(values.length);
            client.setItems(clientItems);
            for(ListOfValuesItem currentItem : values){
                String currentItemValue = currentItem.getValue().toString();
                if (EncryptionEngine.isEncrypted(currentItemValue)) {
                    currentItemValue = null;
                }
                clientItems.add(new ClientListOfValuesItem(currentItem.getLabel(), currentItemValue));
            }
        }
        return client;
    }

}