private void checkIfInheritedPropertyMayBeIgnored(ExecutionContextProperty property)
    {
        if (property.isFinal()) {
            ExecutionContextProperty shadowingProperty = this.properties.get(property.getKey());
            if (!(shadowingProperty == property || shadowingProperty.isClonedFrom(property))) {
                throw new IllegalStateException(
                    String.format("Execution context cannot be inherited because it already contains"
                        + " property [%s] which must be inherited because it is an inherited"
                        + " final property.", property.getKey()));
            }
        }
    }
private void checkIfInheritedPropertyMayBeIgnored ( ExecutionContextProperty property ) { if ( property . isFinal ( ) ) { ExecutionContextProperty shadowingProperty = this . properties . get ( property . getKey ( ) ) ; if ( ! ( shadowingProperty == property || shadowingProperty . isClonedFrom ( property ) ) ) { throw new IllegalStateException ( String . format ( "Execution context cannot be inherited because it already contains" + " property [%s] which must be inherited because it is an inherited" + " final property." , property . getKey ( ) ) ) ; } } }
@param property Property to check.
@throws IllegalStateException if the property may not be ignored.