public ServiceProviderConnectionData createData() {
   return new ServiceProviderConnectionData(
       key.getProviderId(),
       key.getProviderUserId(),
       user.getProfileName(),
       user.getProfileUrl(),
       user.getProfilePictureUrl(),
       accessToken,
       secret,
       null,
       null);
 }
 @SuppressWarnings("rawtypes")
 public boolean equals(Object o) {
   if (!(o instanceof OAuth2ServiceProviderConnection)) {
     return false;
   }
   OAuth1ServiceProviderConnection other = (OAuth1ServiceProviderConnection) o;
   return key.equals(other.key);
 }
 public int hashCode() {
   return key.hashCode();
 }