Java: Dagger application