protected String generateToken() throws OAuthServiceException {
String token;
try {
token = tokenGenerator.generate(UUID.randomUUID().toString().getBytes("UTF-8"));
} catch (Exception e) {
throw new OAuthServiceException("Unable to create token ", e.getCause());
}
return token;
}