//Substitute profile attributes with their value
String cleanScript=substituteProfileAttributes(getScript(), attributes);
setScript(cleanScript);
ScriptManager sm = new ScriptManager();
result = sm.runScript(getScript(), bind, languageScript);
// check if the result must be converted into the right xml sintax
boolean toconvert = checkSintax(result);
if(toconvert) {
result = convertResult(result);
}