class ImmutableThing implements Thing {

    @Override
    @Deprecated
    public Thing setAclEntry(final AclEntry aclEntry) {
        final AccessControlList newAcl;
        if (null == acl || acl.isEmpty()) {
            newAcl = ThingsModelFactory.newAcl(aclEntry);
        } else {
            newAcl = acl.setEntry(aclEntry);
        }

        return setAccessControlList(newAcl);
    }

    private  ImmutableThing(@Nullable final ThingId thingId,
            @Nullable final AccessControlList acl,
            @Nullable final PolicyId policyId,
            @Nullable final ThingDefinition definition,
            @Nullable final Attributes attributes,
            @Nullable final Features features,
            @Nullable final ThingLifecycle lifecycle,
            @Nullable final ThingRevision revision,
            @Nullable final Instant modified,
            @Nullable final Instant created,
            @Nullable final Metadata metadata);

}