if (!id.getServiceModel().equals("singleton"))
instanceBuilder.setAttribute("model", id.getServiceModel());
}
else
{
InvokeFactoryServiceConstructor ifd = (InvokeFactoryServiceConstructor) ib;
instanceBuilder = _document.createElement("invoke-factory");
if (!ifd.getFactoryServiceId().equals("hivemind.BuilderFactory"))
instanceBuilder.setAttribute("service-id", qualify(ifd.getFactoryServiceId()));
if (id.getServiceModel() != null)
instanceBuilder.setAttribute("model", id.getServiceModel());
List parameters = ifd.getParameters();
if (parameters != null)
{
for (Iterator i = parameters.iterator(); i.hasNext();)
{