*/
public void addScriptlet(int index, JRScriptlet scriptlet) throws JRException
{
if (scriptletsMap.containsKey(scriptlet.getName()))
{
throw new JRException("Duplicate declaration of scriptlet : " + scriptlet.getName());
}
JRDesignParameter scriptletParameter = new JRDesignParameter();
scriptletParameter.setName(scriptlet.getName()
+ JRScriptlet.SCRIPTLET_PARAMETER_NAME_SUFFIX);