return route != null ? context.getContextPath() + route.expand(getContext(param)) : null;
}
@SuppressWarnings("unchecked")
private Context getContext(Object param) {
Context context = new EmptyContext();
if (param != null) {
if (param instanceof Map) {
context = new HashMapContext(cleanMapCtx(param), true);
} else if (param instanceof Context) {
context = (Context)param;