method = new JavaMethod("getQueueConnection");
method.setModifiers(new String[] { "public", "static" });
method.setExceptions(new Type[] { new Type("javax.naming.NamingException"),
new Type("javax.jms.JMSException") });
method.setReturns(new Type("javax.jms.QueueConnection"));
retVal.addMethod(method);
method = new JavaMethod("getQueueConnection");
method.setModifiers(new String[] { "public", "static" });
method.setParameters(new JavaParameter[] { new JavaParameter(new Type("java.util.Hashtable"),
"environment") });
method.setExceptions(new Type[] { new Type("javax.naming.NamingException"),