docs: private static NitDesc nitDescFromDynamic(DynamicInstantiatable d){
      NitDesc nd = new NitDesc();
      nd.setScript(d.getScript());
      nd.setTheClass(d.getTheClass());
      if (d.getSpec() == null || "java".equals(d.getSpec())){
        nd.setSpec(NitDesc.NitSpec.JAVA_LOCAL_CLASSPATH);
      } else if ("groovy".equals(d.getSpec())){
        nd.setSpec(NitDesc.NitSpec.GROOVY_CLASS_LOADER);
      } else if ("groovyclosure".equals(d.getSpec())){
        nd.setSpec(NitDesc.NitSpec.GROOVY_CLOSURE);
      } else if ("url".equals(d.getSpec())){
        nd.setSpec(NitDesc.NitSpec.JAVA_URL_CLASSLOADER);
      } else {
        nd.setSpec(NitDesc.NitSpec.valueOf(d.getSpec()));
      }
      return nd;
    }