* a list of Maps used for resolution.
*
* @return a fully resolved <code>Parameters</code>.
*/
public static Parameters buildParameters(Map expressions, InvokeContext context, Map objectModel) throws PatternException {
Location location;
if (expressions instanceof Locatable) {
location = ((Locatable) expressions).getLocation();
} else {
location = Location.UNKNOWN;
}
if (expressions == null || expressions.size() == 0 && location.equals(Location.UNKNOWN)) {
return Parameters.EMPTY_PARAMETERS;
}
SitemapParameters result = new SitemapParameters(location);