public boolean equals(Object o) {
            if (o instanceof ObjectPrincipal) {
                ObjectPrincipal op = (ObjectPrincipal) o;
                return getObject().equals(op.getObject());
            }
            return false;
        }
Constructs and returns a {@link DisabledSessionException} with an appropriate message explaining why
session creation has been disabled.

@return a new DisabledSessionException with appropriate no creation message
@since 1.2
web/src/main/java/org/apache/shiro/web/servlet/ShiroHttpServletRequest.java