private static InputStream getInputStream(String filePath)
    {
        InputStream instream = null;
        try
        {
        	instream = new FileInputStream(filePath);
        }
        catch (Exception e)
        {
            URL url = PropertyReader.class.getClassLoader().getResource(filePath);
            if (url != null)
            {
                try
                {
                    instream = url.openStream();
                }
                catch (IOException e1)
                {
                    e1.printStackTrace();
                }
            }
        }
        if (instream == null)
        {
            try
            {
                throw new FileNotFoundException(filePath);
            }
            catch (FileNotFoundException e)
            {
                e.printStackTrace();
            }
        }
        return instream;
    }