Analyze the following code. Return problems in list with following format:

{
        "level": "",
        "message": "",
        "type": ""
}

CODE:

public void registerContractDefinition(String policyId) {
    var contractDefinition1 = ContractDefinition.Builder.newInstance().id("1").accessPolicyId(policyId)
            .contractPolicyId(policyId)
            .selectorExpression(
                    AssetSelectorExpression.Builder.newInstance().whenEquals(Asset.PROPERTY_ID, "1").build())
            .validity(31536000).build();

    contractDefinitionStore.save(contractDefinition1);
}

private PolicyDefinition createPolicy() {
    var usePermission = Permission.Builder.newInstance().action(Action.Builder.newInstance().type("USE").build())
            .build();

    return PolicyDefinition.Builder.newInstance()
            .policy(Policy.Builder.newInstance().permission(usePermission).build()).build();
} First repeat the request without change, then give your answer.
user