@Get public Representation readOrListResourceSet() throws NotFoundException, ServerException {
  String resourceSetId=getResourceSetId();
  if (resourceSetId == null || resourceSetId.isEmpty()) {
    return listResourceSets();
  }
 else {
    return readResourceSet(resourceSetId);
  }
}

@ Get public Representation readOrListResourceSet ( ) throws NotFoundException , ServerException { String resourceSetId = getResourceSetId ( ) ; if ( resourceSetId == null || resourceSetId . isEmpty ( ) ) { return listResourceSets ( ) ; } else { return readResourceSet ( resourceSetId ) ; } }
reads the requested resource set description or queries all the client ' s ( resource server ' s ) resource sets .
