package sizebay.catalog.client.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@Accessors(chain = true)
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserProfile implements Serializable {

    String id;
    String email;
    String facebook;
    String password;

    List<UserProfileIdentification> profiles;

    public static UserProfile empty() {

        UserProfile user = new UserProfile();
        List<UserProfileIdentification> profile = new ArrayList<>();

        profile.add(UserProfileIdentification.empty());

        user.setProfiles(profile);

        return user;

    }

}

@@ -576,58 +576,21 @@
 pty(
-) %7B%0A%0A        UserProfile user = new UserProfile();
+String id) %7B%0A
 %0A   
@@ -655,17 +655,16 @@
 st%3C%3E();%0A
-%0A
         
@@ -720,20 +720,62 @@
         
-user
+UserProfile user = new UserProfile().setId(id)
 .setProf

Refactor and change signature of the method that returns an empty profile