If there is an entity that has the same values with this entity already, it means the container has the same attachment. Then this method returns {@code false} and do nothing.