Application framework in java