}
public Collection< ? extends EntryPoint> execute(Context context) {
KieSession ksession = ((KnowledgeCommandContext) context).getKieSession();
Collection< ? extends EntryPoint> eps = ksession.getEntryPoints();
EntryPointCreator epCreator = (EntryPointCreator)context.get(EntryPointCreator.class.getName());
if (epCreator == null) {
return eps;
}
Collection<EntryPoint> result = new ArrayList<EntryPoint>();
for (EntryPoint ep : eps) {
result.add(epCreator.getEntryPoint(ep.getEntryPointId()));
}
return result;
}