private static void cmpArrays(ArrayList<String> s1, String opin, ArrayList<String> s2, String opout) {
        for (String a : s1) {
            //System.out.println("AAAAAAAAAAAAA" +a);
        }

        //System.out.println("ENDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD");

        MatchedOperationType mo = new MatchedOperationType();

        mo.setInputOperationName(opin);
        mo.setOutputOperationName(opout);
        double sum = 0.0;
        int count = 0;

        boolean entered = false;
        for (String word1 : s1) {
            for (String word2 : s2) {
                try {
                    double EditDistanceSimilarity = EditDistance.getSimilarity(word1, word2);

                    SimilarityAssessor sim = new SimilarityAssessor();
                    String metric = SimilarityAssessor.PIRRO_SECO_METRIC;
                    // you can choose the proper metric among the implemented one by specifying its name.

                    double dictionarySimilarity;
                    dictionarySimilarity = sim.getSimilarity(word1, word2, metric);
                    double max = EditDistanceSimilarity;
                    if (dictionarySimilarity > EditDistanceSimilarity) {
                        max = dictionarySimilarity;
                    }
                    if (max > THREASHOLD) {
                        entered = true;
                        MatchedElementType me = new MatchedElementType();
                        me.setInputElement(word1);
                        me.setOutputElement(word2);
                        me.setScore(max);
                        sum += max;
                        count++;
                        mo.addMacthedElement(me);
                    }

                } catch (WordNotFoundException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
            }
        }


        if (entered) {

            mo.setOpScore(sum / count);
            t.addMacthedOperation(mo);
            t.setInputServiceName(p1.getServiceName());
            t.setOutputServiceName(p2.getServiceName());
        }
    }