The pattern to create singletons seems to be something like:
public class Singleton { private static final Singleton instance = new Singleton(); priv
You could use the Factory pattern to create the singleton, and switch implementations depending on evironment.
Or, avoid using the singleton pattern, and use Dependency Injection instead.