public InstanceProfile getInstance(String taskId, String instanceId) {
        KeyValueEntity result = this.store.get(getKeyByTaskAndInstanceId(taskId, instanceId));
        if (result == null) {
            return null;
        }
        return result.getAsInstanceProfile();
    }
get instance profile.

@param taskId task id from manager
@param instanceId it can be file name(file collect), table name(db sync) etc
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/store/InstanceStore.java