class ImmutableThing implements Thing {

    @Override
    @Deprecated
    public Thing removeAllPermissionsOf(final AuthorizationSubject authorizationSubject) {
        if (null == acl || acl.isEmpty()) {
            return this;
        }

        return setAccessControlList(acl.removeAllPermissionsOf(authorizationSubject));
    }

    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);

}