@Override
public List<String> completeEndpointPath(ComponentConfiguration componentConfiguration, String completionText) {
String brokerName = String.valueOf(componentConfiguration.getParameter("brokerName"));
MessageBrokerView messageBrokerView = MessageBrokerViewRegistry.getInstance().lookup(brokerName);
if (messageBrokerView != null) {
String destinationName = completionText;
Set<? extends ActiveMQDestination> set = messageBrokerView.getQueues();
if (completionText.startsWith("topic:")) {
set = messageBrokerView.getTopics();
destinationName = completionText.substring(6);
} else if (completionText.startsWith("queue:")) {
destinationName = completionText.substring(6);
}
ArrayList<String> answer = new ArrayList<String>();