Ensuring that ProjectFactory is registered before adding the listener