JavaSource.PUBLIC);
getInstanceByName.setStatic(true);
getInstanceByName.addParam(String.class, "pName");
JavaComment jc = getInstanceByName.newComment();
jc.addLine("Returns the item with the given name.</p>");
jc.addThrows(IllegalArgumentException.class.getName() +
" The name <code>pName</code> is invalid and no such item exists.");
getInstanceByName.addLine(String.class, " s = pName.intern();");
boolean first = true;
for (int i = 0; i < pItems.length; i++) {
Item item = pItems[i];