Generic read service for Rest created. Formatting of code changed.