public static Extension makeIssueSource(Source source) {
   Extension ex = new Extension();
   // todo: write this up and get it published with the pack (and handle the redirect?)
   ex.setUrlSimple(ToolingExtensions.EXT_ISSUE_SOURCE);
   Code c = new Code();
   c.setValue(source.toString());
   ex.setValue(c);
   return ex;
 }
 public static void addDefinition(Code nc, String definition) throws Exception {
   if (!Utilities.noString(definition))
     nc.getExtensions()
         .add(Factory.newExtension(EXT_DEFINITION, Factory.newString_(definition), true));
 }
 public static void addComment(Code nc, String comment) throws Exception {
   if (!Utilities.noString(comment))
     nc.getExtensions().add(Factory.newExtension(EXT_COMMENT, Factory.newString_(comment), true));
 }