removed obsolete import
cleaned code
removed redundancy in resource owner config