class IdentityProviderAwareProcessListener extends DefaultProcessEventListener {

    public void beforeProcessStarted(final ProcessStartedEvent event) {
        resolveIdentityProvider();
        if (identityProvider != null) {
            final WorkflowProcessInstance wpi = (WorkflowProcessInstance) event.getProcessInstance();
            final String name = identityProvider.getName();
            wpi.setVariable("initiator", name);
            wpi.getMetaData().put("OwnerId", name);
        }
    }

    public  IdentityProviderAwareProcessListener(final KieSession kieSession);

}