- * - required resource type
- *
- * @return OCSimulatorResult - return value of this API. It returns
- * OC_STACK_OK if success.
- *
+ * required resource type
+ * @param listener
+ * Interface to receive the discovered remote resources.
+ *
+ * @throws InvalidArgsException
+ * Thrown if the input parameter is empty.
+ * @throws SimulatorException
+ * Thrown for other errors.