code: public static EnterpriseArchive getModuleDeployment(ModuleType type, String basename) {
          return getModuleDeployment(type, basename, true);
      }
docs: Generates deployment for given application.
  
  @param type Module type to generate
  @param basename Base name of module to generate
  @return EnterpriseArchive containing given module and all dependencies