docs: public ServerAccessToken createAccessToken(AccessTokenRegistration reg)
  		throws OAuthServiceException {
  		ServerAccessToken token = new BearerAccessToken(reg.getClient(), 3600L);
  		
  		List<String> scope = reg.getApprovedScope().isEmpty() ? reg.getRequestedScope() 
  				                                              : reg.getApprovedScope();
  		token.setScopes(convertScopeToPermissions(reg.getClient(), scope));
  		token.setSubject(reg.getSubject());
  		token.setGrantType(reg.getGrantType());
  		
  		at = token;
  		
  		return token;
  	}