package io.github.xxyy.common.lib.com.mojang.api.profiles;

public class Profile {
    private String id;
    private String name;
    private boolean demo;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean getDemo() {
        return demo;
    }

    public void setDemo(boolean demo){
        this.demo = demo;
    }
}

package io.github.xxyy.common.lib.com.mojang.api.profiles;

import io.github.xxyy.common.lib.net.minecraft.server.UtilUUID;

import java.util.UUID;

public class Profile {
    private String id;
    private String name;
    private boolean demo;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public UUID getUniqueId() {
        return UtilUUID.getFromString(getId());
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isDemo() {
        return demo;
    }

    public void setDemo(boolean demo){
        this.demo = demo;
    }
}

Add a method to Profile to get the corresponding UUID object.