@Override
 public void updateToken(String seriesId, String tokenValue, Date lastUsed) {
   Token token = null;
   try {
     token = commonService.getEntityByGivenFieldValue(Token.class, "series", seriesId);
     if (!(token == null)) {
       token.setTokenValue(seriesId);
       token.setDate(lastUsed);
       commonService.updateEntity(token);
     }
   } catch (Exception e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }
 @Override
 public PersistentRememberMeToken getTokenForSeries(String seriesId) {
   Token token = null;
   try {
     token = commonService.getEntityByGivenFieldValue(Token.class, "series", seriesId);
     if (!(token == null)) {
       return new PersistentRememberMeToken(
           token.getUsername(), token.getSeries(), token.getTokenValue(), token.getDate());
     }
   } catch (Exception e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   return null;
 }