@Override
    public void setMethodInfo(wadl wadl, String wsdlPath)
    {

        try
        {
            FileInputStream fstream = new FileInputStream(wsdlPath);
            DataInputStream in = new DataInputStream(fstream);
            BufferedReader br = new BufferedReader(new InputStreamReader(in));

            XMLInputFactory factory = XMLInputFactory.newInstance();
            XMLStreamReader parser = factory.createXMLStreamReader(br);

            while (true)
            {
                int event = parser.next();
                if (event == XMLStreamConstants.END_DOCUMENT)
                {
                    parser.close();
                    break;
                }

                if (event == XMLStreamConstants.START_ELEMENT)
                {
                    if (parser.getLocalName().equalsIgnoreCase("tool"))
                    {
                        wadl.setMethodId(parser.getAttributeValue(0));
                        wadl.setMethodName(parser.getAttributeValue(1));
                    }

                    if (parser.getLocalName().equalsIgnoreCase("description"))
                    {
                        wadl.setDescription(parser.getElementText());
                    }
                }
            } // while ends

        } catch (java.io.FileNotFoundException ex1)
        {
            System.out.println("The tool config file does not exist\n" + ex1);
        } catch (javax.xml.stream.XMLStreamException ex2)
        {
            System.out.println("The tool config file is not a valid xml Document\n" + ex2);
        } catch (Exception e)
        {
            System.out.println("Unexpected error occured\n" + e);
        } finally
        {
        }


    }