private static Object getJsonObject(OperationResult operationResult) { if (operationResult.isSucess()) { return getJsonSuccess(operationResult); } return getJsonError(operationResult); }