import com.woorea.openstack.nova.model.Servers;
public class NovaStopStartServer {
public static void main(String[] args) throws InterruptedException {
Keystone keystone = new Keystone(ExamplesConfiguration.KEYSTONE_AUTH_URL);
Access access = keystone.tokens().authenticate(new UsernamePassword(ExamplesConfiguration.KEYSTONE_USERNAME, ExamplesConfiguration.KEYSTONE_PASSWORD))
.withTenantName(ExamplesConfiguration.TENANT_NAME)
.execute();
//use the token in the following requests
keystone.token(access.getToken().getId());