title: Programmatically (in Java) keep OS X from going asleep
body: <p>OS X Lion still goes to sleep, even if programmatic mouse "wiggles" are being periodically issued from a Java Robot (this is a standard approach to keeping machines from going to sleep and is documented elsewhere in stackoverflow, and it worked for me prior to OS X Lion).</p>
  
  <p>Can anyone suggest an alternative approach, which does not require permission escalation, of keeping the machine awake from a Java application?</p>
  
  <p>((The fallback solution is obviously to change the Energy Saving preferences so that the machine never sleeps, but we'd like to be smarter than that because requiring the machine to stay awake is the exception rather than the rule)).</p>