String content = contents[i];
Condition c = new Condition(content);
List<String> params = c.getParamNames();
for (final String paramName : params) {
UserProperty up = profile.getProperty(paramName);
PropertyMeta prop = up.getMeta();
String value = null == up ? null : up.getValue();
if (StringUtils.isNotEmpty(value)) {
if (value.equals(Restriction.ALL)) {
content = "";
} else {
content = StringUtils.replace(content, ":" + prop.getName(), ":" + prop.getName()
+ index);
paramValues.add(unmarshal(value, prop));
}
} else {
throw new RuntimeException(paramName + " had not been initialized");