private Connection.TLSPolicy getHardcodedTLSPolicy()
    {
        try
        {
            return Connection.TLSPolicy.valueOf( tlsPolicyPropertyName );
        } catch ( IllegalArgumentException ex ) {
            // Not hardcoded!
            return null;
        }
    }
Returns the applicable TLS policy, but only when it is hardcoded (and unconfigurable).
@return a policy or null.
xmppserver/src/main/java/org/jivesoftware/openfire/spi/ConnectionListener.java