> +    * 
> +    * @param context
> +    *           The API context.
> +    * @param dto
> +    *           The dto used to generate the domain object.
> +    * @return The task domain object.
> +    */
> +   protected static AsyncTask<?, ?> newTask(final ApiContext<AbiquoApi> 
> context, final TaskDto dto) {
> +      // Can be null in untrackable tasks
> +      if (dto == null) {
> +         return null;
> +      }
> +
> +      Class<? extends AsyncTask<?, ?>> taskClass = null;
> +
> +      switch (dto.getType().getOwnerType()) {

I'm guessing the Type object shouldn't know anything different class types? 
Otherwise, could this be simplified to a dto.getType().getTaskClass() call?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/9/files#r4919407

Reply via email to