class OAuthClientDetailsService {

  public OAuthClientDetails getOAuthClientDetails() {
    List<OAuthClientDetails> oauthClientDetails =
        Lists.newArrayList(oauthClientDetailsRepository.findAll());
    if (!oauthClientDetails.isEmpty()) {
      return oauthClientDetails.get(0);
    } else {
      throw new EntityNotFoundException();
    }
  }

}