formular = (FormularDescriptor) formularOutput.getContent();
}
}
catch (Exception x)
{
throw new ModelException("[aktera.edit] Unable to create formular from model " + formularModelName
+ " (" + x + ")");
}
}
else if (formularClassName != null)
{
try
{
formular = (FormularDescriptor) Class.forName(formularClassName).newInstance();
}
catch (ClassNotFoundException x)
{
throw new ModelException("[aktera.edit] Unable to create formular from class " + formularClassName
+ " (" + x + ")");
}
catch (InstantiationException x)
{
throw new ModelException("[aktera.edit] Unable to create formular from class " + formularClassName
+ " (" + x + ")");
}
catch (IllegalAccessException x)
{
throw new ModelException("[aktera.edit] Unable to create formular from class " + formularClassName
+ " (" + x + ")");
}
}
if (formular == null)
{
throw new ModelException("[aktera.edit] No formular defined");
}
if (formularModelName != null)
{
formular.setId(formularModelName);