private static boolean paramsEqual(final String p1,final String p2){
  if (p1 == null) {
    return p1 == p2;
  }
 else {
    return p1.equals(p2);
  }
}

private static boolean paramsEqual ( final String p1 , final String p2 ) { if ( p1 == null ) { return p1 == p2 ; } else { return p1 . equals ( p2 ) ; } }
determines if the given parameters are equal .
