public List<String> getRuntimeNames(String version) {
   SeamRuntime[] rts =
       SeamRuntimeManager.getInstance().getRuntimes(SeamVersion.parseFromString(version));
   List<String> result = new ArrayList<String>();
   for (SeamRuntime seamRuntime : rts) {
     result.add(seamRuntime.getName());
   }
   return result;
 }
 private static SeamVersion getSeamVersion(String seamGenBuildPath) {
   if (seamGenBuildPath == null || seamGenBuildPath.trim().length() <= 0) {
     return null;
   }
   String fullVersion = SeamUtil.getSeamVersionFromManifest(seamGenBuildPath);
   if (fullVersion == null) {
     return null;
   }
   String version = fullVersion.substring(0, 3);
   SeamVersion seamVersion = null;
   if (version != null) {
     seamVersion = SeamVersion.findByString(version);
   }
   return seamVersion;
 }
 /*
  * (non-Javadoc)
  *
  * @see
  * org.jboss.tools.seam.ui.wizard.SeamWizardFactory.NewSeamRuntimeAction
  * #getSeamVersions()
  */
 @Override
 protected SeamVersion[] getSeamVersions() {
   String seamVersion =
       model.getProperty(IFacetDataModelProperties.FACET_VERSION_STR).toString();
   return new SeamVersion[] {SeamVersion.parseFromString(seamVersion)};
 }