code: public OneLoginResponse<Role> getRolesBatch(HashMap<String, String> queryParameters, int batchSize, String afterCursor)
  			throws OAuthSystemException, OAuthProblemException, URISyntaxException {
  		ExtractionContext context = extractResourceBatch(queryParameters, batchSize, afterCursor, Constants.GET_ROLES_URL);
  		List<Role> roles = new ArrayList<Role>(batchSize);
  		afterCursor = getRolesBatch(roles, context.url, context.bearerRequest, context.oAuthResponse);
  		return new OneLoginResponse<Role>(roles, afterCursor);
  	}
docs: Get a batch of Roles.
  
  @param queryParameters Query parameters of the Resource
  @param batchSize Size of the Batch
  @param afterCursor Reference to continue collecting items of next page
  
  @return OneLoginResponse of Role (Batch)
  
  @throws OAuthSystemException - if there is a IOException reading parameters of the httpURLConnection
  @throws OAuthProblemException - if there are errors validating the OneloginOAuthJSONResourceResponse and throwOAuthProblemException is enabled
  @throws URISyntaxException - if there is an error when generating the target URL at the URIBuilder constructor
  
  @see com.onelogin.sdk.model.Role
  @see <a target="_blank" href="https://developers.onelogin.com/api-docs/1/roles/get-roles">Get Roles documentation</a>