public Script addScript(final ScriptDetails scriptDetails){
  final File scriptFile=new File(scriptDetails.getFile());
  final Script script=new Script();
  createFileBasedScript(script,scriptFile,scriptDetails);
  logger.info("Adding script {} at {}",script.getName(),scriptFile.getAbsolutePath());
  scripts.put(scriptFile.getAbsolutePath(),script);
  return script;
}

public Script addScript ( final ScriptDetails scriptDetails ) { final File scriptFile = new File ( scriptDetails . getFile ( ) ) ; final Script script = new Script ( ) ; createFileBasedScript ( script , scriptFile , scriptDetails ) ; logger . info ( "Adding script {} at {}" , script . getName ( ) , scriptFile . getAbsolutePath ( ) ) ; scripts . put ( scriptFile . getAbsolutePath ( ) , script ) ; return script ; }
creates and records a script with the given details .
