}
}
if (expression.contains(ALL_ARGUMENT))
{
WildcardFilter filter = new WildcardFilter(expression);
if (Map.class.isAssignableFrom(type))
{
Map<String, Object> props = new HashMap<String, Object>();
for (String name : msg.getPropertyNames(scope))
{
if (filter.accept(name))
{
props.put(name, msg.getProperty(name, scope));
}
}
return (T) returnMap(props, scope);
}
else if (List.class.isAssignableFrom(type))
{
List<Object> values = new ArrayList<Object>();
for (String name : msg.getPropertyNames(scope))
{
if (filter.accept(name))
{
values.add(msg.getProperty(name, scope));
}
}
return (T) returnList(values, scope);