class NovaLauncher extends Launcher {

  public static NovaCredentials readCredentials(Confs confs) {
    String accountId = confs.getProperty(NovaSetting.NOVA_ACCOUNT_ID_KEY.getParameter());
    String accessKey = confs.getProperty(NovaSetting.NOVA_ACCESSKEY_KEY.getParameter());
    String endpoint = confs.getProperty(NovaSetting.NOVA_ACCOUNT_ENDPOINT.getParameter());
    String version = confs.getProperty(NovaSetting.NOVA_VERSION.getParameter());
    String novaRegion = confs.getProperty(NovaSetting.NOVA_REGION.getParameter());
    String novaNetworkId = confs.getProperty(NovaSetting.NOVA_NETWORKID.getParameter());
    NovaCredentials novaCredentials = null;
    if (accountId != null && !accountId.isEmpty() && accessKey != null && !accessKey.isEmpty()
            && endpoint != null && !endpoint.isEmpty() && novaRegion != null && !novaRegion.isEmpty()
            && version != null && !version.isEmpty()) {
      novaCredentials = new NovaCredentials();
      novaCredentials.setAccountName(accountId);
      novaCredentials.setAccountPass(accessKey);
      novaCredentials.setEndpoint(endpoint);
      novaCredentials.setRegion(novaRegion);
      novaCredentials.setVersion(version);
      novaCredentials.setNetworkId(novaNetworkId);
    }
    return novaCredentials;
  }

  public  NovaLauncher(NovaContext novaContext, SshKeyPair sshKeyPair);

}