/** * @return the type of operation present in the request */ public static OperationType getOperationType(OperationRequest operation) { String methodName = operation.getMethod(); // TODO(ljvderijk): This might be removed after the deserialization is fixed if (methodName.startsWith("wave.")) { methodName = methodName.replaceFirst("^wave[.]", ""); } return OperationType.fromMethodName(methodName); }