public static List<ActiveMQDestination> convertToActiveMQDestination(Object value) {
        if (value == null) {
            return null;
        }

        // text must be enclosed with []

        String text = value.toString();
        if (text.startsWith("[") && text.endsWith("]")) {
            text = text.substring(1, text.length() - 1).trim();

            if (text.isEmpty()) {
                return null;
            }

            String[] array = text.split(",");

            List<ActiveMQDestination> list = new ArrayList<ActiveMQDestination>();
            for (String item : array) {
                list.add(ActiveMQDestination.createDestination(item.trim(), ActiveMQDestination.QUEUE_TYPE));
            }

            return list;
        } else {
            return null;
        }
    }
@Test
    public void testConvertToActiveMQDestination() {

        List<ActiveMQDestination> result = StringToListOfActiveMQDestinationConverter.convertToActiveMQDestination("");
        assertNull(result);

        result = StringToListOfActiveMQDestinationConverter.convertToActiveMQDestination("[]");
        assertNull(result);
        result = StringToListOfActiveMQDestinationConverter.convertToActiveMQDestination("[  ]");
        assertNull(result);

        result = StringToListOfActiveMQDestinationConverter.convertToActiveMQDestination("[one,two,three]");
        assertNotNull(result);
        assertEquals(3, result.size());

        result = StringToListOfActiveMQDestinationConverter.convertToActiveMQDestination("[one, two, three  ]");
        assertNotNull(result);
        assertEquals(3, result.size());
    }