* @param parameters Action parameters.
*/
public final Map act(String type, String source, Parameters parameters) throws Exception {
ComponentSelector selector = null;
Action action = null;
SourceResolver resolver = null;
Map result = null;
try {
selector = (ComponentSelector) this.manager.lookup(Action.ROLE +
"Selector");
assertNotNull("Test lookup of action selector", selector);
resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);
assertNotNull("Test lookup of source resolver", resolver);
assertNotNull("Test if action name is not null", type);
action = (Action) selector.select(type);
assertNotNull("Test lookup of action", action);
result = action.act(redirector, new SourceResolverAdapter(resolver, this.manager),
objectmodel, source, parameters);
} catch (ComponentException ce) {
getLogger().error("Could not retrieve action", ce);
fail("Could not retrieve action: " + ce.toString());