try {
int c = 0;
// first
if (o1 instanceof Dependency) {
Dependency d1 = (Dependency) o1;
Dependency d2 = (Dependency) o2;
String s1 = d1.getScope();
String s2 = d2.getScope();
if (s1 == null || "".equals(s1)) {
s1 = "compile";
}
if (s2 == null || "".equals(s2)) {
s2 = "compile";