Adding Singleton Java pattern.