Generics to do service and object convert service.