private static boolean isValidOperation(String op){
  if (op.equalsIgnoreCase("LOOKUP") || op.equalsIgnoreCase("REGISTER") || op.equalsIgnoreCase("SIGNED")|| op.equalsIgnoreCase("UNSIGNED")|| op.equalsIgnoreCase("POLICY")) {
    return true;
  }
 else {
    return false;
  }
}

private static boolean isValidOperation ( String op ) { if ( op . equalsIgnoreCase ( "LOOKUP" ) || op . equalsIgnoreCase ( "REGISTER" ) || op . equalsIgnoreCase ( "SIGNED" ) || op . equalsIgnoreCase ( "UNSIGNED" ) || op . equalsIgnoreCase ( "POLICY" ) ) { return true ; } else { return false ; } }
checks whether the given operation is valid .
