try {
Object value = propertyResolverBean.resolveProperty(key, bundleName, ctx);
if (logger.isDebugEnabled()) {
logger.debug("Resolved property with key " + key + " to " + value);
}
if (annotation.parameters().length > 0) {
if (field.getType().equals(String.class)) {
value = MessageUtils.formatMessage((String) value, (Object[]) annotation.parameters());
} else {
logger.warn("Found property with defined parameters for formatting but property type is not of type "
+ String.class.getSimpleName() + ". Skipping message format... [" + field.getDeclaringClass().getSimpleName() + "."