Fixed setting resource owner name for service resource owners

Replaces #312.