if (proto== null) { GLMDebug.DEBUG(className_,  "newResource(), could not create prototype: "+ typeid); return null;
if (proto == null) { if (logger.isDebugEnabled()) { logger.debug("newResource(), could not create prototype: " + typeid); } return null;
  protected Asset newAsset(String typeid, String type, String nomenclature) {    // 	GLMDebug.DEBUG(className_, "newResource("+typeid+", "+type+", "+ nomenclature);    Asset proto;    try {      if (typeid == null)	throw new IllegalArgumentException("newResource : "+typeid+					   " nomenclature: "+ nomenclature);      proto = getLDM().getFactory().createPrototype(type, typeid);      // 	    GLMDebug.DEBUG(className_, "newResource(), typeid "+typeid+", nomenclature "+      // 			    nomenclature);      if (proto== null) {	GLMDebug.DEBUG(className_,  "newResource(), could not create prototype: "+		       typeid);	return null;      }      if (nomenclature != null) {	NewTypeIdentificationPG pg = (NewTypeIdentificationPG) proto.getTypeIdentificationPG();	pg.setNomenclature(nomenclature);	pg.setAlternateTypeIdentification(pg.getTypeIdentification());      } else {	GLMDebug.DEBUG(className_,"newResource:  "+typeid+		       " no nomenclature ");      }    } catch (Exception ee) {      GLMDebug.ERROR(className_,"newResource() could not make "+typeid+" "+ee.toString());      ee.printStackTrace();      return null;    }    return proto;  }