private void getQueueByType(PCFMessageAgent agent, int type, Collection destinations) throws PCFException, MQException, IOException
{
final PCFMessage request = new PCFMessage(CMQCFC.MQCMD_INQUIRE_Q_NAMES);
request.addParameter(CMQC.MQCA_Q_NAME, "*");
request.addParameter(CMQC.MQIA_Q_TYPE, type);
final PCFMessage[] responses = agent.send(request);
final String[] names = (String[]) responses[0].getParameterValue(CMQCFC.MQCACF_Q_NAMES);
for (int i = 0; i < names.length; i++)