private String getSecretKey(MessageContext msgCtxt) throws Exception {
String key = (String) this.properties.get("secret-key");
if (key == null || key.equals("")) {
throw new IllegalStateException("secret-key is not specified or is empty.");
}
<BUG>key = resolvePropertyValue(key, msgCtxt);
</BUG>
if (key == null || key.equals("")) {
throw new IllegalStateException("secret-key is null or empty.");
}

private String getSecretKey(MessageContext msgCtxt) throws Exception {
String key = (String) this.properties.get("secret-key");
if (key == null || key.equals("")) {
throw new IllegalStateException("secret-key is not specified or is empty.");
}
key = (String) resolvePropertyValue(key, msgCtxt);
if (key == null || key.equals("")) {
throw new IllegalStateException("secret-key is null or empty.");
}
