immutable can only be declared on the Root Entity. That is, it is not wrong to say that a non-root entity is mutable, so you should not send the message immutableAnnotationOnNonRoot.
This should only happen for non-root entities that are immutable.